In order to create a user, use the provided add_users.sh script. This script can be used in two distinct ways:
1) For bulk users addition, run the following:
add_users.sh users.csv
where users.csv is a csv file containing with columns named as follow:
2) For single user addition, run the following:
add_users.sh --single username password full_name email
where the various arguments are defined as of point 1. Be careful at this stage to include the full name within “” if the name includes white spaces. For example:
add_users.sh --single testuser some_password "A Test User" email@gmail.com
After having set up the user(s), all the information associated with the user can be assessed with:
getent passwd username
Also, at this stage it is important to ensure that all the relevant folders to be used by the user both in /home/ and in /scratch/users have been created.
ls /home/
ls /scratch/users
Where in both cases you should see new folder(s) having the same name of the user(s) just created.
In order to delete a user, use the provided delete_users.sh script. This script can be used in two distinct ways:
1) For bulk users deletions, run the following:
delete_users.sh users.csv
where users.csv is a csv file containing with columns named as follow:
2) For single user addition, run the following:
delete_users.sh --single username
where username is also here the username of the user to be deleted.
Once run, the script will ask to confirm and, if so, press and enter “y” to confirm and “n” to cancel the operation.
By default, the script will save a backup copy of the users’ files that have been deleted. In order not to save such a backup, add the following argument:
delete_users.sh users.csv --no-backup
And, equally, in the single user case:
delete_users.sh --single username --no-backup