nerdexam
CompTIA

XK0-005 · Question #528

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?

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…

System Management

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

How the community answered

(49 responses)
  • A
    78% (38)
  • B
    4% (2)
  • C
    12% (6)
  • D
    6% (3)

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

#File Permissions#SUID#chmod command#Special Permissions

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice