add users to town group on creation
This commit is contained in:
parent
61947db73a
commit
09f61e8ccc
@ -90,6 +90,7 @@ class Townie(User):
|
|||||||
_guarded_run(['sudo',
|
_guarded_run(['sudo',
|
||||||
'adduser',
|
'adduser',
|
||||||
'--quiet',
|
'--quiet',
|
||||||
|
'--groups=town',
|
||||||
'--shell={}'.format(self.shell),
|
'--shell={}'.format(self.shell),
|
||||||
'--gecos="{}"'.format(self.displayname),
|
'--gecos="{}"'.format(self.displayname),
|
||||||
'--disabled-password',
|
'--disabled-password',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user