chown root:shutdown /sbin/{halt,poweroff,reboot,shutdown}
chmod 750 /sbin/{halt,poweroff,reboot,shutdown}
chmod u+s /sbin/{halt,poweroff,reboot,shutdown}
-
- # Il faut ajouter l'usager régulier au groupe shutdown.
- gpasswd -a ${REGUSER} shutdown
}
chmod -v 644 /etc/default/useradd
if [ -n "${REGUSER}" ]; then
- hv_useradd -g users -G audio,video,usb -s /bin/bash -m ${REGUSER}
+ hv_useradd -g users -G audio,video,usb,shutdown -s /bin/bash -m ${REGUSER}
fi
echo "Copying /etc/skel files to root directory"