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.
42 lines
499 B
42 lines
499 B
1 year ago
|
# Users
|
||
|
|
||
|
Summary: Work with system users and groups.
|
||
|
|
||
|
## Available Commands
|
||
|
|
||
|
### group
|
||
|
|
||
|
NOT YET IMPLEMENTED.
|
||
|
|
||
|
### user
|
||
|
|
||
|
Add or remove a user.
|
||
|
|
||
|
Adding a user:
|
||
|
|
||
|
```ini
|
||
|
[create bob's user account]
|
||
|
user: bob
|
||
|
groups: sudo
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
To override the home directory:
|
||
|
|
||
|
```ini
|
||
|
[create the deploy user]
|
||
|
user: deploy
|
||
|
groups: sudo, www-data
|
||
|
home: /var/www/example_app
|
||
|
sudo: yes
|
||
|
```
|
||
|
|
||
|
Removing a user:
|
||
|
|
||
|
```ini
|
||
|
[remove bob's user account because he's screwing up the system]
|
||
|
user: bob
|
||
|
op: remove
|
||
|
sudo: yes
|
||
|
```
|