debian: preinst needs a group and force no password entry on adduser

This commit is contained in:
Jason Mehring 2014-10-31 03:04:42 -04:00
parent 0937a3b3c6
commit d34268a085

5
debian/preinst vendored
View File

@ -78,7 +78,10 @@ EOF
# --------------------------------------------------------------------------
# User add / modifications
# --------------------------------------------------------------------------
id -u 'user' || adduser user
id -u 'user' || {
groupadd -f user
useradd -g user -G dialout,cdrom,floppy,sudo,audio,dip,video,plugdev -m -s /bin/bash user
}
usermod -p '' root
usermod -L user
exit 0