Student ID
You can put any integer number here to generate different exercises for practice. However you must submit the activity associated with your ID number to D2L in order to receive credit for the activity.
Managing User Groups
- Take a screenshot of these instructions (including your student number) and the file/folder structure below. If you cannot get everything into the screenshot it is okay, just take your ID number and whatever fits on the screen.
- Log into the sit.cna-qatar.edu.qa server and answer these two questions (take a screenshot
of the command you used to find the answer):
- What groups do you belong to?
- Who are the people who could create new user accounts on the server? We are looking for names!
-
Create user accounts for the following people with the listed passwords. The username
must be the first letter of the firstname followed by the last name. The username
must be all lower case letters. If there is a conflict such as 'John Smith' and
'Jim Smith' the names would be jsmith and jsmith2. The user's primary group needs to be
named as listed.
Name Password Primary Group Supplemental Groups - After creating the user accounts, create the secondary groups and assign users into the secondary groups as shown in the table.
- Use the "groups" command to show the users and the groups they belong to. This should be done in a single command such as "groups jsmith mhamdan rmdconald".
- Log into the server (using ssh) as the user X. Try running the command "sudo addgroup testgroup". This command should fail. Take a screenshot of this failed attempt.
- From an administrator account add the user X to the sudo group. Now from the user account try the "sudo addgroup testuser" again (remember that you will need to sign out and sign back in as the user in order to pick up the new rights. Take a screenshot of the successful group creation.
- Remove all the users and all the groups from this activity! Submit screenshots of the last 10 lines of the /etc/group file, the last 10 lines of the /etc/passwd file, and the directory listing of the /home folder to prove that you have removed everything.
Submission of Work
The daily exercises in this course are based on proving that you have successfully completed the tasks. This is done by determining which command(s) are necessary and collecting a screenshot of the completed work.
For each day, you will submit a PDF file to D2L by 11:30pm. The format MUST BE PDF! Submitting work in any other format will result in a zero. The dropbox closes promptly at 11:30pm and no late submissions by email will be accepted. No special arrangements will be made for any reason. A small number of daily activities will excused at the end of the semester to handle various problems that might arise.
Questions/parts must be clearly labelled. Work submitted without labels will not receive full marks.