From 09d90aecd59ed3f258a29f54a3cacdac312f3d0c Mon Sep 17 00:00:00 2001 From: gobo72 Date: Sun, 28 Aug 2011 00:13:40 +0000 Subject: [PATCH] Correction ajout usager au groupe shutdown --- stage2/pkg/sysvinit | 3 --- stage2/post-install | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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" -- 2.20.1