A collection of classes and commands for automated command line scripting using Python.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

499 B

Users

Summary: Work with system users and groups.

Available Commands

group

NOT YET IMPLEMENTED.

user

Add or remove a user.

Adding a user:

[create bob's user account]
user: bob
groups: sudo
sudo: yes

To override the home directory:

[create the deploy user]
user: deploy
groups: sudo, www-data
home: /var/www/example_app
sudo: yes

Removing a user:

[remove bob's user account because he's screwing up the system]
user: bob
op: remove
sudo: yes