suppress some log messages
This commit is contained in:
parent
6647754444
commit
cb0011d2d4
1 changed files with 14 additions and 14 deletions
|
@ -66,18 +66,18 @@ useradd -m -g users -s "/bin/zsh" "$user"
|
|||
printf "|> setting password for user '$user'...\n"
|
||||
echo -e "$password\n$password" | passwd "$user"
|
||||
|
||||
printf "|> adding user '$user' to group 'disk'...\n" && addgroup "$user" disk
|
||||
printf "|> adding user '$user' to group 'lp'...\n" && addgroup "$user" lp
|
||||
printf "|> adding user '$user' to group 'wheel'...\n" && addgroup "$user" wheel
|
||||
printf "|> adding user '$user' to group 'floppy'...\n" && addgroup "$user" floppy
|
||||
printf "|> adding user '$user' to group 'audio'...\n" && addgroup "$user" audio
|
||||
printf "|> adding user '$user' to group 'cdrom'...\n" && addgroup "$user" cdrom
|
||||
printf "|> adding user '$user' to group 'dialout'...\n" && addgroup "$user" dialout
|
||||
printf "|> adding user '$user' to group 'tape'...\n" && addgroup "$user" tape
|
||||
printf "|> adding user '$user' to group 'video'...\n" && addgroup "$user" video
|
||||
printf "|> adding user '$user' to group 'netdev'...\n" && addgroup "$user" netdev
|
||||
printf "|> adding user '$user' to group 'games'...\n" && addgroup "$user" games
|
||||
printf "|> adding user '$user' to group 'sudo'...\n" && addgroup "$user" sudo
|
||||
printf "|> adding user '$user' to group 'disk'...\n" && addgroup "$user" disk > /dev/null
|
||||
printf "|> adding user '$user' to group 'lp'...\n" && addgroup "$user" lp > /dev/null
|
||||
printf "|> adding user '$user' to group 'wheel'...\n" && addgroup "$user" wheel > /dev/null
|
||||
printf "|> adding user '$user' to group 'floppy'...\n" && addgroup "$user" floppy > /dev/null
|
||||
printf "|> adding user '$user' to group 'audio'...\n" && addgroup "$user" audio > /dev/null
|
||||
printf "|> adding user '$user' to group 'cdrom'...\n" && addgroup "$user" cdrom > /dev/null
|
||||
printf "|> adding user '$user' to group 'dialout'...\n" && addgroup "$user" dialout > /dev/null
|
||||
printf "|> adding user '$user' to group 'tape'...\n" && addgroup "$user" tape > /dev/null
|
||||
printf "|> adding user '$user' to group 'video'...\n" && addgroup "$user" video > /dev/null
|
||||
printf "|> adding user '$user' to group 'netdev'...\n" && addgroup "$user" netdev > /dev/null
|
||||
printf "|> adding user '$user' to group 'games'...\n" && addgroup "$user" games > /dev/null
|
||||
printf "|> adding user '$user' to group 'sudo'...\n" && addgroup "$user" sudo > /dev/null
|
||||
|
||||
printf "|> modifying sudoers...\n"
|
||||
sed -i "s/# %sudo ALL=(ALL) ALL/%sudo ALL=(ALL) ALL/" "/etc/sudoers"
|
||||
|
@ -93,8 +93,8 @@ dropbearkey -t "rsa" -s "4096" -f "/etc/dropbear/dropbear_rsa_host_key"
|
|||
dropbearkey -t "dss" -s "1024" -f "/etc/dropbear/dropbear_dss_host_key"
|
||||
dropbearkey -t "ecdsa" -s "521" -f "/etc/dropbear/dropbear_ecdsa_host_key"
|
||||
|
||||
printf "|> stopping and disabling sshd...\n"
|
||||
systemctl disable sshd --now
|
||||
printf "|> disabling sshd...\n"
|
||||
systemctl disable sshd
|
||||
|
||||
printf "|> enabling and starting dropbear...\n"
|
||||
systemctl enable dropbear --now
|
||||
|
|
Loading…
Reference in a new issue