home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Explicitely set Bash as shell on plom creation, instead of by default template.
[config]
/
bullseye
/
setup_scripts
/
init_user_and_keybased_login.sh
diff --git
a/bullseye/setup_scripts/init_user_and_keybased_login.sh
b/bullseye/setup_scripts/init_user_and_keybased_login.sh
index 2ff2896e9cff65a9d625dc2727e32fd73d321f05..5c238b91f48113d5982f62a39063bfaba3342057 100755
(executable)
--- a/
bullseye/setup_scripts/init_user_and_keybased_login.sh
+++ b/
bullseye/setup_scripts/init_user_and_keybased_login.sh
@@
-10,7
+10,6
@@
# Dependencies: ssh, scp, sshpass, ~/.ssh/id_rsa.pub, properly
# configured sshd_config file in reach.
set -e
# Dependencies: ssh, scp, sshpass, ~/.ssh/id_rsa.pub, properly
# configured sshd_config file in reach.
set -e
-set -x
# Location of an sshd_config with "PermitRootLogin no" and
# "PasswordAuthentication no".
# Location of an sshd_config with "PermitRootLogin no" and
# "PasswordAuthentication no".
@@
-47,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}" \
# 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 && '\
+ 'useradd -m plom
-s /bin/bash
&& '\
'mkdir /home/plom/.ssh && '\
'chown plom:plom /home/plom/.ssh && '\
'chown plom:plom /tmp/authorized_keys && '\
'mkdir /home/plom/.ssh && '\
'chown plom:plom /home/plom/.ssh && '\
'chown plom:plom /tmp/authorized_keys && '\