add users to town group on creation

add-key-for-user
nate 2017-12-04 20:46:45 -08:00
parent 61947db73a
commit 09f61e8ccc
1 changed files with 6 additions and 5 deletions

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',