modified: u.a. add user 'marsupilami'.

This commit is contained in:
Christoph 2024-11-17 11:05:30 +01:00
parent 62cf8ac515
commit e6b0a946f4
2 changed files with 18 additions and 1 deletions

View File

@ -37,6 +37,7 @@ sudo_users="
jumpy
localadmin
marcus
marsupilami
nd-admin
sysadm
wadmin
@ -184,6 +185,9 @@ if ! id -u "${user_name}" > /dev/null 2>&1 ; then
elif [[ "$user_name" = 'back' ]]; then
user_uid=1060
user_gid=1060
elif [[ "$user_name" = 'borg' ]]; then
user_uid=1065
user_gid=1065
elif [[ "$user_name" = 'cryptpad' ]]; then
user_uid=1033
user_gid=1033
@ -266,10 +270,15 @@ if $password_needed ; then
elif [[ "$user_name" = 'back' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$y\\\$j9T\\\$okMvVb1lmERtmLDa0lAmM1\\\$Gkm9VHgv.IYijNpsTE3sOZ.pg7I0x7siuXPVFbwQc23:\2#" /etc/shadow
# - borg
# -
elif [[ "$user_name" = 'borg' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$y\\\$j9T\\\$SZty9T8ZWbnyHR2S85xaG.\\\$GhxHOKG9fKErT9s5TAehXXyZJSkNaIcXY18Rg1iMyhC:\2#" /etc/shadow
# - localadmin
# -
elif [[ "$user_name" = 'localadmin' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$6\\\$flo5afeu\\\$1Dn/tqIOJIFQbymCzpJk9BgGflQdy2Eg0nTiMBF7VefN7uY/Md1pV2yU0S47kZuH5aDjSdPfKzhHp8Aul/xx90:\2#" /etc/shadow
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$y\\\$j9T\\\$E.dWE6DepFmx/ky49sM/n1\\\$G13WcXjHq3v4thAnsdl6PZIMnhN/y7FHv/qx/8X/Xh6:\2#" /etc/shadow
# - axel
# -
@ -401,6 +410,12 @@ if $password_needed ; then
elif [[ "$user_name" = 'marcus' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$6\\\$SPnbZ2Gcf.4iHz93\\\$Vp7fg/xCGls4cPJIiLR5Ogxm2U38RPpPgHLaLIJiOe.PekJCuRsvRLBZLITec2JQhdVTvqpmKURUZrKdXs62z0:\2#" /etc/shadow
# - marsupilami (Torbsen IL)
# -
elif [[ "$user_name" = 'marsupilami' ]]; then
perl -i -n -p -e "s#^(${user_name}):[^:]+:(.+)#\1:\\\$y\\\$j9T\\\$guTT3egsLUFwxUGCnDJ0o0\\\$WCQt3gXcYIpArTxbn2BunvIWG6w7GZLx./fFGJYCsd/:\2#" /etc/shadow
# - root
# -
elif [[ "$user_name" = 'root' ]]; then

View File

@ -0,0 +1,2 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL4wVpkMrF4M5wKBxRAonR4gVngO9+yhBEAyhV03l6Is