fix group stuff
parent
09f61e8ccc
commit
24e87bb09f
|
@ -90,12 +90,17 @@ class Townie(User):
|
|||
_guarded_run(['sudo',
|
||||
'adduser',
|
||||
'--quiet',
|
||||
'--groups=town',
|
||||
'--shell={}'.format(self.shell),
|
||||
'--gecos="{}"'.format(self.displayname),
|
||||
'--disabled-password',
|
||||
self.username,])
|
||||
|
||||
_guarded_run(['sudo',
|
||||
'usermod',
|
||||
'-a',
|
||||
'-Gtown',
|
||||
self.username])
|
||||
|
||||
# Create .ssh
|
||||
_guarded_run(['sudo',
|
||||
'--user={}'.format(self.username),
|
||||
|
|
Loading…
Reference in New Issue