Which of the following commands enables the setuid (suid) permission on the executable called /bin/foo?
Suggested Answer: B
Get Premium LCP-001 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
18 comments · newest first
KA
Kaycee
11 months ago
Yup, B is the suid command for sure!
JA
Janna
11 months ago
Are you sure B is right? Seems too simple.
PO
Portia
11 months ago
Wait, isn't it D? I thought you could use +s for that.
CL
Clay
12 months ago
I thought it was A at first, but B makes more sense.
TA
Tambra
12 months ago
It's definitely B, that's the correct way to set suid.
LE
Lenna
12 months ago
I thought you could also use the +s syntax, but I can't remember if that's the same as the numeric method. Is option D valid?
KA
Kathrine
1 year ago
I practiced a similar question where the answer was about using chmod with a specific number. I feel like 4755 sounds right for setuid.
LA
Laurena
1 year ago
I remember something about the 1 in the first digit indicating special permissions, but I'm not sure if it's 1755 or 4755 for setuid.
FR
France
1 year ago
I think the setuid permission is set with a 4 in the first digit of chmod, so maybe it's option B?
LA
Latonia
1 year ago
The key here is to look for the command that specifically mentions the setuid bit. That narrows it down to B and D, and since D has an extra +s that doesn't seem quite right, I'm going to go with B as the answer.
ID
Idella
1 year ago
I'm a little confused by the different options here. I know the setuid bit is important for security, but I'm not sure which of these commands is the right one to use. I'll have to review my notes on file permissions before answering this.
LA
Lavelle
1 year ago
Okay, I've got it! The setuid bit is represented by the 4 in the chmod command, so the answer must be B. Thanks for the reminder, Annamae!
RO
Rolande
1 year ago
Hmm, I'm a bit unsure about this one. I know the setuid bit has something to do with permissions, but I can't quite remember the exact command to set it. I'll have to think this through carefully.
AN
Annamae
1 year ago
I think the answer is B. The chmod 4755 command sets the setuid bit, which allows the executable to run with the permissions of the file's owner rather than the user running it.
JA
Jacob
1 year ago
I'm a little confused by the wording of the options. I'll need to re-read them a few times to make sure I understand the differences between them.
SA
Sabra
1 year ago
Okay, let's see. The question is asking us to focus on the two queries that should have the highest priority for reducing execution time. I'll need to think this through step-by-step.
OZ
Ozell
1 year ago
Ah, I know this one! The 'docker service ps' command will show you the list of tasks for a specific service, so option A is the correct answer. I've used this command before to troubleshoot issues with my services, so I'm confident this is the right approach.
SA
Samira
1 year ago
I think the code should compile successfully since it looks well-structured, but I'm a bit unsure about the operator overload.