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', _guarded_run(['sudo',
'adduser', 'adduser',
'--quiet', '--quiet',
'--shell={}'.format(self.shell), '--groups=town',
'--gecos="{}"'.format(self.displayname), '--shell={}'.format(self.shell),
'--disabled-password', '--gecos="{}"'.format(self.displayname),
self.username,]) '--disabled-password',
self.username,])
# Create .ssh # Create .ssh
_guarded_run(['sudo', _guarded_run(['sudo',