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.

  1. What is the UID of your user account? What is the UID of the root account?
  2. When a new user is created, what files will they be given automatically in their home directory?
  3. What is the salt that was used for your user account?
  4. What groups is your user account a part of? How about the root account?
  5. What are the permissions of the /etc/passwd file in octal?
  6. What are the permissions of the /etc/sudoers file in octal?
  7. What are the permissions of the /root/ directory in octal?
  8. What is the current umask for your regular user? What are the default file permissions for a regular file you create?
  9. What is the umask for the root account? What are the default file permissions for a regular file root creates?
  10. What command would you use to change the /var/www/html/index.html file to be owned by your user and a group called "webdev"?

 

Submitting

Submit the answers to the questions in the assignment in Canvas.