From 24e87bb09f8f1d5f0e95f62139b7ecab367e04d6 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 13 Dec 2017 23:43:58 -0800 Subject: [PATCH] fix group stuff --- ttadmin/users/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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),