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:
parent
eeadc90a11
commit
977095e1d9
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue