Fixed 'sats-user' instead of 'satsuser'

This commit is contained in:
xdrm-brackets 2017-01-21 16:46:15 +01:00
parent cf67b9a7f7
commit 28a01afccc
1 changed files with 5 additions and 5 deletions

View File

@ -117,17 +117,17 @@ step4(){
step5(){ step5(){
echo "\n>>> [5] Updating users"; echo "\n>>> [5] Updating users";
echo " (.) Adding user satsuser"; echo " (.) Adding user sats-user";
# shadow # shadow
echo " /etc/shadow"; echo " /etc/shadow";
## TODO: Manage default password ## ## TODO: Manage default password ##
echo "satsuser:*:17185:0:999999:7::" | sudo tee -a /mnt/etc/shadow > /dev/null; echo "sats-user:*:17185:0:999999:7::" | sudo tee -a /mnt/etc/shadow > /dev/null;
echo "satsuser:*:17185:0:999999:7::" | sudo tee -a /mnt/etc/shadow- > /dev/null; echo "sats-user:*:17185:0:999999:7::" | sudo tee -a /mnt/etc/shadow- > /dev/null;
# passwd # passwd
echo " /etc/passwd"; echo " /etc/passwd";
echo "satsuser:x:666:666:sats-user,,,:/home/sats-user:/bin/sh" | sudo tee -a /mnt/etc/passwd > /dev/null; echo "sats-user:x:666:666:sats-user,,,:/home/sats-user:/bin/sh" | sudo tee -a /mnt/etc/passwd > /dev/null;
echo "satsuser:x:666:666:sats-user,,,:/home/sats-user:/bin/sh" | sudo tee -a /mnt/etc/passwd- > /dev/null; echo "sats-user:x:666:666:sats-user,,,:/home/sats-user:/bin/sh" | sudo tee -a /mnt/etc/passwd- > /dev/null;
echo " (.) Removing pi's login password"; echo " (.) Removing pi's login password";
# create temp file without pi's password # create temp file without pi's password