Lab 4: Users, Groups and Permissions
Objective
To get experience with commands dealing with users and permissions.
Task
For this lab, you will answer the following questions, which will require you to run commands discussed in class. These all refer to your Google Cloud VM running Debian 12.
- What is the UID of your user account? What is the UID of the root account?
- When a new user is created, what files will they be given automatically in their home directory?
- What is the salt that was used for your user account?
- What groups is your user account a part of? How about the root account?
- What are the permissions of the
/etc/passwdfile in octal? - What are the permissions of the
/etc/sudoersfile in octal? - What are the permissions of the
/root/directory in octal? - What is the current umask for your regular user? What are the default file permissions for a regular file you create?
- What is the umask for the root account? What are the default file permissions for a regular file root creates?
- What command would you use to change the
/var/www/html/index.htmlfile to be owned by your user and a group called "webdev"?
Submitting
Submit the answers to the questions in the assignment in Canvas.