Unformatted text preview: sk 1 – Managing Users
Answer the following questions.
1. Consult the man page for the useradd command. Write down the command you would enter to
create a account for the staff member Steven Jobs. The user should have a home directory in /home
and should belong to the apple group.
2. Write a script called remove_user.sh which manages the deletion of users. The script is to have
the following usage
$ remove_user.sh [USER]
The should tar up and compress the users directory and place it in a safe location – the file should be
in the form of USER-DDMMYY.tar.gz where USER is the users, user nam...
View Full Document
- Three '14
- home directory, lab task, batch script, Basic User Administration