Add -m option to useradd in archiso rc script.

This make the user home automatically with correct perms,
and also copies skel.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2010-03-15 23:55:58 -03:00
parent eeadc90a11
commit 977095e1d9

View File

@ -66,10 +66,7 @@ do_makeuser ()
{
stat_busy "Making the default user arch"
addgroups="audio,disk,optical,wheel"
useradd -p "" -g users -G $addgroups arch
mkdir /home/arch
chmod 700 /home/arch
chown arch:users /home/arch
useradd -m -p "" -g users -G $addgroups arch
stat_done
}