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.
Sticky Bits
- 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.
- Note: This activity uses the same users accounts and files as the previous "Advanced Sharing" activity. If you have already completed the previous activity, you can skip down to step #6.
- Create the following user accounts on your VM: 'X', 'Y', and 'Z'. The full name and other details are not important, use any password that you will remember.
- Create a folder named 'x, x, and x. Type a few lines of random text into these files. ' in the folder /usr/local/src. Inside this new folder create 3 files named:
- Change the owner of the folder and files from above to belong to user 'X'.
-
Configure permissions so that the following requirements are satisfied:
- User 'Y' can create new files in the folder.
- User 'Y' can view and modify all the files in the folder.
- User 'Z' cannot do a directory listing, view or modify any files in the folder.
- When files new files are created by 'X' or 'Y', the files should end up automatically in the same group.
-
When you have completed the configuration from the previous step submit screenshots
of the following:
- Run tree showing the permissions, owners and groups of the files.
- Show that the users 'X' and 'Y' can view the contents of the files.
- Show that user 'Z' cannot see anything, even if they know the name of the file.
- Show that newly created files belong to the correct group automatically. To do this, log in as user 'X' and create a file using the touch command followed immediately by "ls -l" to show the details of the file. Submit the screenshot showing both of these commands (one picture).
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.