add users to town group on creation

This commit is contained in:
nate 2017-12-04 20:46:45 -08:00
parent 61947db73a
commit 09f61e8ccc

View File

@ -89,11 +89,12 @@ class Townie(User):
_guarded_run(['sudo',
'adduser',
'--quiet',
'--shell={}'.format(self.shell),
'--gecos="{}"'.format(self.displayname),
'--disabled-password',
self.username,])
'--quiet',
'--groups=town',
'--shell={}'.format(self.shell),
'--gecos="{}"'.format(self.displayname),
'--disabled-password',
self.username,])
# Create .ssh
_guarded_run(['sudo',