Browse Source

Mark a user account as being the adinistrator

Bob Mottram 9 years ago
parent
commit
21f03af0f7
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone

+ 7
- 0
src/freedombone View File

1230
   echo 'install_not_on_BBB' >> $COMPLETION_FILE
1230
   echo 'install_not_on_BBB' >> $COMPLETION_FILE
1231
 }
1231
 }
1232
 
1232
 
1233
+function mark_admin_user_account {
1234
+  if [ ! -f /home/$MY_USERNAME/.freedombone_administrator ]; then
1235
+      touch /home/$MY_USERNAME/.freedombone_administrator
1236
+  fi
1237
+}
1238
+
1233
 function randomize_cron {
1239
 function randomize_cron {
1234
   # The predictable default timing of Debian cron jobs might
1240
   # The predictable default timing of Debian cron jobs might
1235
   # be exploitable knowledge. Avoid too much predictability
1241
   # be exploitable knowledge. Avoid too much predictability
10834
 randomize_cron
10840
 randomize_cron
10835
 create_freedns_updater
10841
 create_freedns_updater
10836
 initial_setup
10842
 initial_setup
10843
+mark_admin_user_account
10837
 enforce_good_passwords
10844
 enforce_good_passwords
10838
 install_editor
10845
 install_editor
10839
 change_login_message
10846
 change_login_message