From 7fe1cd7181ae5243d921fc76185d98db55366866 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Sat, 1 Oct 2011 22:02:45 +0000 Subject: [PATCH] =?utf8?q?Cr=C3=A9ation=20de=20l'usager=20r=C3=A9gulier=20?= =?utf8?q?seulement=20=C3=A0=20la=20fin=20du=20stage=205.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stage2/post-install | 6 +----- stage4/pkg/hal | 2 +- stage5/post-install | 5 +++++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/stage2/post-install b/stage2/post-install index fb6c992..5da1992 100755 --- a/stage2/post-install +++ b/stage2/post-install @@ -14,12 +14,8 @@ EOF chmod -v 644 /etc/default/useradd -if [ -n "${REGUSER}" ]; then - hv_useradd -g users -G audio,video,cdrom,usb,shutdown -s /bin/bash -m ${REGUSER} -fi - echo "Copying /etc/skel files to root directory" -# Copy skel files to root directory. First create a copy to change owner +# First create a copy to change owner cp -au /etc/skel/.??* /root # Fixing ownership of directories /tmp and /var/log (may have been created by diff --git a/stage4/pkg/hal b/stage4/pkg/hal index 78d38ac..b90ea66 100644 --- a/stage4/pkg/hal +++ b/stage4/pkg/hal @@ -47,7 +47,7 @@ hvbuild_post() EOF # Now add the users you would like to the halusers group to use HAL: - usermod -a -G halusers ${REGUSER} + ##usermod -a -G halusers ${USERNAME} # With the above configuration in place, authorized users now have the # ability to unmount disk partitions mounted at non-standard locations such diff --git a/stage5/post-install b/stage5/post-install index e5adb97..6c953a9 100755 --- a/stage5/post-install +++ b/stage5/post-install @@ -2,6 +2,11 @@ source ../functions/main +if [ -n "${REGUSER}" ]; then + hv_useradd -g users -G audio,video,cdrom,usb,shutdown,halusers \ + -s /bin/bash -m ${REGUSER} +fi + if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then ######################################### -- 2.20.1