debian: preinst needs a group and force no password entry on adduser
This commit is contained in:
parent
0937a3b3c6
commit
d34268a085
5
debian/preinst
vendored
5
debian/preinst
vendored
@ -78,7 +78,10 @@ EOF
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# User add / modifications
|
# 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 -p '' root
|
||||||
usermod -L user
|
usermod -L user
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user