exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 7 question 50 discussion

Actual exam question from CompTIA's LX0-104
Question #: 50
Topic #: 7
[All LX0-104 Questions]

Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?

  • A. find /usr -uid 0 -perm +4000
  • B. find -user root +mode +s /usr
  • C. find -type suid -username root -d /usr
  • D. find /usr -ls \*s\* -u root
  • E. find /usr -suid -perm +4000
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
The command find /usr -uid 0 -perm +4000 uses the find utility to search for files in the directory /usr that match certain criteria. The criteria specified in this command are: -uid 0: The owner of the file must be the user with the user ID 0, which is usually the root user. -perm +4000: The file must have its SUID (Set User ID) bit set. The SUID bit is a permission bit that allows a user to execute a file with the permissions of the file's owner, rather than the user who is executing the file. When the value of the SUID bit is set to 4,000 in binary, it is represented as +4000 in the find command. So, the command will search for all files in the /usr directory that are owned by the root user and have the SUID bit set, and print a list of these files.
upvoted 1 times
...
linux_admin
2 years, 2 months ago
A. find /usr -uid 0 -perm +4000
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