Managing File Permissions and Ownership Flashcards
What is the layout of a file / folder permission?
-(directory or not)—(user)—(group)—(other)
What does the following command do?
chmod ugo+x filename / foldername
Gives the user, group, and other ownerships execute permission
What does the following command do?
chmod ug-x, o+rwx filename / foldername
Removes execute permission from the user and group permissions.
Gives the other ownership read, write, execute permission
What does the following command do?
sudo chown nick nick.txt
Changes the owner of nick.txt to nick
What does the following command do?
sudo chown nick.nick nick do?
Changes the user nick and the group nick to be owners of the folder nick
What does the following command do?
sudo chown .nick nick do?
Changes the group owner for folder nick to group nick
What is the octal value of r?
4
What is the octal value of w?
2
What is the octal value of x?
1