Update scripts
This commit is contained in:
@@ -65,7 +65,8 @@ if (( samba )); then
|
||||
fi
|
||||
|
||||
ask_ok "Prompt user to reset password on next login?" &&
|
||||
passwd --expire "$user"
|
||||
passwd --expire "$user" &&
|
||||
echo "NOTE: The file sharing (smbpasswd) will not be changed"
|
||||
|
||||
# TODO check if centos 9 does by default
|
||||
# Add subuids & subgids for container namespace
|
||||
@@ -79,8 +80,8 @@ passwd --expire "$user"
|
||||
# echo "$user:$start_gid:$id_num" >> /etc/subgid
|
||||
|
||||
# Copy manual to user desktop
|
||||
mkdir -p /home/"$user"/Desktop/
|
||||
ln -fs "$parent"/README.html /home/"$user"/Desktop/
|
||||
chown "$user":"$user" -R /home/"$user"/Desktop
|
||||
desktop="/home/$user/Desktop"
|
||||
[[ -d $desktop ]] || sudo -u "$user" mkdir -p "$desktop"
|
||||
copy_manual "$desktop"
|
||||
|
||||
exit $?
|
||||
exit 0
|
||||
Reference in New Issue
Block a user