Manage File Permissions and Ownership (3) Flashcards
Objective 104.5 Weight 3
Which of the following commands will display the current account’s group memberships?
- whoami
- cat /etc/group
- cat /etc/groups
- ls -og
- group
- groups
- cat /etc/group
AND - groups
The groups command will display the current account’s group memberships. You can also find the current account’s group memberships in the /etc/group configuration file, but you’d also see all the other groups and their members as well.
Which of the following octal codes represent the permission settings on a file of rwxr-x-r–?
- 754
- 731
- 751
- 0754
- 0731
Your selection is incorrect
0751
- 754
AND - 0754
If the first number is 0 (special permissions granted) it does not need to be included in the number. The Owner level rwx is represented by the octal code 7, the Group level r-x is represented by the octal code 5, and the World level r– is represented by the octal code 4. So 0754 and 754 are the correct octal codes to represent this permission setting on a file.