From 09f61e8cccd1f4bf7a2a7548a4d74e9f87856518 Mon Sep 17 00:00:00 2001 From: nate Date: Mon, 4 Dec 2017 20:46:45 -0800 Subject: [PATCH] add users to town group on creation --- ttadmin/users/models.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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',