home · contact · privacy
Do not set shell in init_user scripts as its absence alerts to not having run setup_s...
authorChristian Heller <c.heller@plomlompom.de>
Thu, 21 Oct 2021 21:38:29 +0000 (23:38 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 21 Oct 2021 21:38:29 +0000 (23:38 +0200)
bullseye/setup_scripts/init_user_and_keybased_login.sh
bullseye/setup_scripts/init_user_login.sh

index 5c238b91f48113d5982f62a39063bfaba3342057..f237a84de33a85e6fe5635e6ff89eb98f76b2651 100755 (executable)
@@ -46,7 +46,7 @@ export SSHPASS="${PW_ROOT}"
 # would require setting a password for user plom otherwise not needed.
 sshpass -e scp ~/.ssh/id_rsa.pub root@"${server}":/tmp/authorized_keys
 sshpass -e ssh root@"${server}" \
-        'useradd -m plom -s /bin/bash && '\
+        'useradd -m plom && '\
         'mkdir /home/plom/.ssh && '\
         'chown plom:plom /home/plom/.ssh && '\
         'chown plom:plom /tmp/authorized_keys && '\
index 35075d009faad75f8df0b11c7ea4f635cbc377c8..21a8062276707e16790d062de842f07f8f8115f5 100755 (executable)
@@ -31,7 +31,7 @@ echo 'Asking for new root password.'
 ssh root@"${server}" "passwd"
 
 # Set up plom's ~/.ssh/authorized_keys from root's.
-ssh root@"${server}" 'useradd -m plom -s /bin/bash'
+ssh root@"${server}" 'useradd -m plom'
 ssh root@"${server}" 'mkdir /home/plom/.ssh'
 ssh root@"${server}" 'chown plom:plom /home/plom/.ssh'
 ssh root@"${server}" 'cp /root/.ssh/authorized_keys /home/plom/.ssh/'