From: gobo72 Date: Sun, 28 Aug 2011 00:13:40 +0000 (+0000) Subject: Correction ajout usager au groupe shutdown X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=09d90aecd59ed3f258a29f54a3cacdac312f3d0c;p=hvlinux.git Correction ajout usager au groupe shutdown --- diff --git a/stage2/pkg/sysvinit b/stage2/pkg/sysvinit index 853c904..4ca834e 100644 --- a/stage2/pkg/sysvinit +++ b/stage2/pkg/sysvinit @@ -23,7 +23,4 @@ hvbuild_post() 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 } diff --git a/stage2/post-install b/stage2/post-install index 86f919a..22435ae 100755 --- a/stage2/post-install +++ b/stage2/post-install @@ -15,7 +15,7 @@ EOF 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"