Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM Exam LCP-001 Topic 4 Question 70 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 70
Topic #: 4
[All LCP-001 Questions]

Which of the following commands enables the setuid (suid) permission on the executable called /bin/foo?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Fannie
4 months ago
Wait, isn't suid supposed to let you run a program as the owner, not as root? I'm pretty sure it's B, but I could be wrong.
upvoted 0 times
...
Deandrea
4 months ago
Haha, these suid questions are the bane of my existence. I'm just going to guess and hope for the best.
upvoted 0 times
Alline
3 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Raelene
3 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
...
Jamal
4 months ago
Because the setuid permission is represented by the number 4 in the first digit of the chmod command.
upvoted 0 times
...
Stefania
5 months ago
Oh man, I always get these suid commands mixed up. I think it's one of the 'chmod' options, but I can never remember which one.
upvoted 0 times
Rodolfo
3 months ago
You're right, it's A) chmod 1755 /bin/foo. That sets the suid permission.
upvoted 0 times
...
Teresita
3 months ago
No, I believe it's A) chmod 1755 /bin/foo
upvoted 0 times
...
Dean
3 months ago
I think it's B) chmod 4755 /bin/foo
upvoted 0 times
...
Elly
3 months ago
D) chmod 755+s /bin/foo
upvoted 0 times
...
Mi
3 months ago
C) chown u-s /bin/foo
upvoted 0 times
...
Kallie
3 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Lavelle
3 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
Major
3 months ago
D) chmod 755+s /bin/foo
upvoted 0 times
...
Arlen
4 months ago
C) chown u-s /bin/foo
upvoted 0 times
...
Marvel
4 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Mariann
4 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
...
Lauran
5 months ago
Hmm, I was thinking D, chmod 755+s /bin/foo. Isn't that how you enable suid on a file?
upvoted 0 times
Adelaide
4 months ago
No, I believe it's A) chmod 1755 /bin/foo.
upvoted 0 times
...
Jesus
4 months ago
I think the correct answer is B) chmod 4755 /bin/foo.
upvoted 0 times
...
Tabetha
4 months ago
D) chmod 755+s /bin/foo
upvoted 0 times
...
Jordan
4 months ago
C) chown u-s /bin/foo
upvoted 0 times
...
Helga
4 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Silva
5 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
...
Edgar
5 months ago
Why do you think A is correct?
upvoted 0 times
...
Jamal
5 months ago
I disagree, I believe the correct answer is A) chmod 1755 /bin/foo.
upvoted 0 times
...
Val
5 months ago
I'm pretty sure it's B, chmod 4755 /bin/foo. That's the one that sets the suid bit, right?
upvoted 0 times
Antione
4 months ago
Thanks for confirming. I'll remember to use chmod 4755 /bin/foo for setting suid in the future.
upvoted 0 times
...
Sue
4 months ago
I agree, B) chmod 4755 /bin/foo is the correct command for enabling setuid permission.
upvoted 0 times
...
Dorinda
4 months ago
I think it's B too. That command sets the suid bit on the executable.
upvoted 0 times
...
Quentin
4 months ago
Yes, you are correct. B) chmod 4755 /bin/foo is the command to enable the setuid permission.
upvoted 0 times
...
...
Edgar
5 months ago
I think the answer is B) chmod 4755 /bin/foo.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77