Fixed 'sats-user' instead of 'satsuser'
This commit is contained in:
parent
cf67b9a7f7
commit
28a01afccc
10
clone/clone
10
clone/clone
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue