exam questions

Exam LX0-103 All Questions

View all questions & answers for the LX0-103 exam

Exam LX0-103 topic 4 question 29 discussion

Actual exam question from CompTIA's LX0-103
Question #: 29
Topic #: 4
[All LX0-103 Questions]

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

  • A. The command is SetUID and it will be executed with the effective rights of the owner.
  • B. The command will be executed with the effective rights of the group instead of the owner.
  • C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored.
  • D. The command will be executed with the effective rights of the owner and group.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
Setuid (short for set user ID) is a Unix/Linux file permission that allows users to run an executable file with the permissions of the file's owner. When a file is setuid, the user executing the file has the same permissions as the owner of the file, regardless of their own permissions. This is often used for programs that need elevated privileges to run properly, such as system administration tools. When a program is executed with setuid, it runs with the same permissions as the owner of the program, which can be a security risk if not used properly.
upvoted 1 times
linux_admin
2 years, 2 months ago
The answer is A. The permissions -rwSr-xr-x mean that the file is a binary file with read and write permissions for the owner, SetUID bit is set, execute permission for the owner, read and execute permissions for the group, and read and execute permissions for others. The SetUID bit means that the file is executed with the effective rights of the owner, rather than the user who executes the file. So, when the file is executed as a command, it will be executed with the effective rights of the owner.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago