One of the many joys is loading and unloading students at the end of each semester
from the environment.
Background: Accounts via Kerbosos
When the installation was setup, I was really interested in trying to use the
students pre-existing usernames (NetIDs) to authorize. To do so, there are
a few hand wavy moves that were done to enable this using kerbosos.
If I have time later, I’ll try to give a more details without risking system
Mass Adding and Removing Users
There are two different scripts that I use to add (onboard) and remove (offboard)
users. Both scripts require a text file that has a header (e.g. “Usernames”)
followed by a username (e.g. “NetID”) on each line.
From here, the script automatically populates the users and deletes them.
Script to Populate Users
Below is the script that I use to add users to the environment.
Script to Remove Users
Below is the script that I use to remove users from the environment. When I
remove a user, I want everything that the user added gone so -r flag is added
to userdel. Note, the script in its current form is highly destructive as it
does not consider whether a user is shared between two classes.