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