2024-11-12 17:06:52 +01:00
|
|
|
# autouser
|
|
|
|
|
2024-11-12 17:11:26 +01:00
|
|
|
Small shell script made for automatically creating and deleting a large amount of Linux users or groups.
|
|
|
|
|
2024-11-12 17:12:57 +01:00
|
|
|
## Usage
|
2024-11-12 17:11:26 +01:00
|
|
|
```
|
|
|
|
./autouser.sh $PARAMETER file.csv
|
|
|
|
|
|
|
|
PARAMETERS
|
|
|
|
--help || -h (Show this help prompt)
|
|
|
|
--dry-run (Test without executing any changes)
|
2024-12-16 10:45:16 +01:00
|
|
|
|
2024-11-12 17:11:26 +01:00
|
|
|
--create-users users.csv (Create users from a .csv file)
|
|
|
|
--create-groups groups.csv (Create groups from a .csv file)
|
|
|
|
--delete-users users.csv (Delete users from a .csv file)
|
|
|
|
--delete-groups groups.csv (Delete groups from a .csv file)
|
2024-12-16 10:45:16 +01:00
|
|
|
|
|
|
|
--create-user (Create user manually)
|
|
|
|
--create-group (Create group manually)
|
|
|
|
--delete-user (Delete user manually)
|
|
|
|
--delete-group (Delete group manually)
|
2024-11-12 17:11:26 +01:00
|
|
|
```
|