Thursday, February 16, 2017

Access Control

MyLinux Learning Path

Do Linux to learn Linux. Set current directory to: ~/Desktop/. File and group owner is javierma36.

  1. Create a txt file (Code1.txt) using touch command. Identify and print separately (user, group, other) the default access control assigned.
  2. Create a directory (Delta_Proyect) using mkdir command. Identify and print separately (user, group, other) the default access control assigned.
  3. What does it means: xrw access control.
  4. Change user access control permissions of Code1.txt to: x-- and try to open the file.
  5. What does it means: $ chmod u-x Code1.txt ?
  6. What does it means: $ chmod ug+w Code1.txt ?
  7. What does it means: $ chmod a+x Code1.txt ?
  8. What does it means: $ chmod 444 Code1.txt ?
  9. What does it means: $ chmod 111 Code1.txt ?
  10. What does it means: $ chmod 222 Code1.txt ?
  11. What does it means: $ chmod 666 Code1.txt ?
  12. What does it means: $ chmod 777 Code1.txt ?
  13. What does it means: $ chmod 600 Code1.txt ?
  14. Is this possible: chmod 777 Code1.txt Delta_Proyect/ ?
  15. Imagine that user "alex" exists. Is this possible: $ chown alex Delta_Proyect/ ? Who is the group owner ?
  16. Imagine that user "alex" exists. Is this possible: $ sudo chown alex Delta_Proyect/ ? Who is the group owner ?
  17. Imagine that user "alex" exists. Is this possible: # chown alex Delta_Proyect/ ? Who is the group owner ?
  18. Imagine that user "alex" exists. Is this possible: $ chown alex:alex Code1.txt/ ? Who is the user and group owner now.?
  19. Imagine that user "alex" exists. Is this possible: $ sudo chown alex:alex Code1.txt/ ? Who is the user and group owner now.?
  20. Imagine that user "alex" exists. Is this possible: # chown alex:alex Code1.txt/ ? Who is the user and group owner now.?
  21. Imagine that user "alex" exists. Is this possible: # chgrp alex Code1.txt/ ? Who is the user and group owner now.?
  22. Imagine that user "alex" exists. Is this possible: $ chgrp alex Code1.txt/ ? Who is the user and group owner now.?
  23. Imagine that user "alex" exists. Is this possible: $ sudo chgrp alex Code1.txt/ ? Who is the user and group owner now.?

No comments:

Post a Comment