exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 80 discussion

Actual exam question from LPI's 101-500
Question #: 80
Topic #: 1
[All 101-500 Questions]

Which of the following commands sets the SetUID permission on the executable /bin/foo?

  • A. chmod 4755 /bin/foo
  • B. chmod 1755 /bin/foo
  • C. chmod u-s /bin/foo
  • D. chmod 755+s /bin/foo
  • E. chmod 2755 /bin/foo
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
Lazylinux
Highly Voted 1 year, 4 months ago
Selected Answer: A
For the special permissions, you prepend these numbers with another number where 4 is setuid, 2 is setgid, and 1 is the sticky bit
upvoted 11 times
...
NeoSam999
Most Recent 8 months ago
Selected Answer: A
Correct Answer: A
upvoted 1 times
NeoSam999
8 months ago
To set SUID: ~$ chmod 4755 test-SetUID ~$ ls -l test-SetUID -rwsr-xr-x 1 neo neo 0 jul 1 19:37 test-SetUID To remove it: ~$ chmod 0755 test-SetUID ~$ ls -l test-SetUID -rwxr-xr-x 1 neo neo 0 jul 1 19:20 test-SetUID
upvoted 2 times
...
...
georgerobel
2 years, 9 months ago
Correct answer is A.
upvoted 4 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