add users to town group on creation
This commit is contained in:
		
							parent
							
								
									61947db73a
								
							
						
					
					
						commit
						09f61e8ccc
					
				@ -89,11 +89,12 @@ class Townie(User):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        _guarded_run(['sudo',
 | 
					        _guarded_run(['sudo',
 | 
				
			||||||
                      'adduser',
 | 
					                      'adduser',
 | 
				
			||||||
                       '--quiet',
 | 
					                      '--quiet',
 | 
				
			||||||
                       '--shell={}'.format(self.shell),
 | 
					                      '--groups=town',
 | 
				
			||||||
                       '--gecos="{}"'.format(self.displayname),
 | 
					                      '--shell={}'.format(self.shell),
 | 
				
			||||||
                       '--disabled-password',
 | 
					                      '--gecos="{}"'.format(self.displayname),
 | 
				
			||||||
                       self.username,])
 | 
					                      '--disabled-password',
 | 
				
			||||||
 | 
					                      self.username,])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Create .ssh
 | 
					        # Create .ssh
 | 
				
			||||||
        _guarded_run(['sudo',
 | 
					        _guarded_run(['sudo',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user