XK0-005 · Question #1523
XK0-005 Question #1523: Real Exam Question with Answer & Explanation
The correct answer is A: chmod 4744 dev_team.txt. The command that will set the SUID of a file named dev_team.txt with 744 access rights is chmod 4744 dev_team.txt. This command will use the chmod utility to change the file mode bits of dev_team.txt. The first digit (4) represents the SUID bit, which means that when someone exec
Question
A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?
Options
- Achmod 4744 dev_team.txt
- Bchmod 744 --setuid dev_team.txt
- Cchmod -c 744 dev_team.txt
- Dchmod -v 4744 --suid dev_team.txt
Explanation
The command that will set the SUID of a file named dev_team.txt with 744 access rights is chmod 4744 dev_team.txt. This command will use the chmod utility to change the file mode bits of dev_team.txt. The first digit (4) represents the SUID bit, which means that when someone executes dev_team.txt, it will run with the permissions of the file owner. The next three digits (744) represent the read, write, and execute permissions for the owner (7), group (4), and others (4). This means that the owner can read, write, and execute dev_team.txt, while the group and others can only read it.
Topics
Community Discussion
No community discussion yet for this question.