diff --git a/ttadmin/users/models.py b/ttadmin/users/models.py index 43d9c45..a0e1e6e 100644 --- a/ttadmin/users/models.py +++ b/ttadmin/users/models.py @@ -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),