BlackFriday 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
3 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
3 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
2 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
4 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
2 months ago
You're right, it's A) chmod 1755 /bin/foo. That sets the suid permission.
upvoted 0 times
...
Teresita
2 months ago
No, I believe it's A) chmod 1755 /bin/foo
upvoted 0 times
...
Dean
2 months ago
I think it's B) chmod 4755 /bin/foo
upvoted 0 times
...
Elly
2 months ago
D) chmod 755+s /bin/foo
upvoted 0 times
...
Mi
2 months ago
C) chown u-s /bin/foo
upvoted 0 times
...
Kallie
2 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Lavelle
2 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
Major
2 months ago
D) chmod 755+s /bin/foo
upvoted 0 times
...
Arlen
3 months ago
C) chown u-s /bin/foo
upvoted 0 times
...
Marvel
3 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Mariann
4 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
...
Lauran
4 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
3 months ago
No, I believe it's A) chmod 1755 /bin/foo.
upvoted 0 times
...
Jesus
3 months ago
I think the correct answer is B) chmod 4755 /bin/foo.
upvoted 0 times
...
Tabetha
3 months ago
D) chmod 755+s /bin/foo
upvoted 0 times
...
Jordan
3 months ago
C) chown u-s /bin/foo
upvoted 0 times
...
Helga
3 months ago
B) chmod 4755 /bin/foo
upvoted 0 times
...
Silva
4 months ago
A) chmod 1755 /bin/foo
upvoted 0 times
...
...
Edgar
4 months ago
Why do you think A is correct?
upvoted 0 times
...
Jamal
4 months ago
I disagree, I believe the correct answer is A) chmod 1755 /bin/foo.
upvoted 0 times
...
Val
4 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
3 months ago
Thanks for confirming. I'll remember to use chmod 4755 /bin/foo for setting suid in the future.
upvoted 0 times
...
Sue
3 months ago
I agree, B) chmod 4755 /bin/foo is the correct command for enabling setuid permission.
upvoted 0 times
...
Dorinda
3 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