Given the following listing
-rw-r---r--- 1 root whee1 15254 Nov 13 08:55 bobsfile
How can the superuser grant the user bob write permission to this file?
Suggested Answer: A
Get Premium 702-100 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
37 comments · newest first
SH
Sheridan
11 months ago
I’m surprised there’s no direct chmod option for user permissions!
ET
Ethan
11 months ago
Definitely not C, that just adds execute permission.
LE
Leota
11 months ago
Wait, can you really use chperm? That sounds off.
GA
Gary
12 months ago
I think A could work too, but not for write access.
FR
Frederic
12 months ago
Option B is the right choice!
AN
Annelle
12 months ago
Chgrp seems off for this, but I feel like I might have seen chown used in a similar context before.
CY
Cyril
1 year ago
I practiced a similar question, and I think chmod is the right command, but I don't remember the exact syntax for adding write permission.
LA
Lashawna
1 year ago
I remember something about chown, but I can't recall if it actually grants write permission or just changes ownership.
AN
Annmarie
1 year ago
I think we need to change the permissions, but I'm not sure if it's chmod or something else.
DI
Diego
1 year ago
Ah, I've got it! The correct answer is to use the chown command to change the owner and group of the file to bob.
EV
Evan
1 year ago
I've seen questions like this before. I think the answer is to use the chown command to change the owner of the file to bob.
GE
Germaine
1 year ago
I'm a bit confused by the different options. I'm not sure if changing the group or the permissions is the right approach here.
LA
Lachelle
1 year ago
Okay, let me see... I think the key here is to change the owner of the file to the user bob. That should give bob write access.
JU
Justine
1 year ago
Hmm, this looks like a permissions question. I'll need to think carefully about the different commands and how they affect file ownership and permissions.
SC
Scot
2 years ago
E) vipw -u bob bobsfile? More like 'vipw -u dumb bob' amirite? B is the winner!
TE
Terrilyn
2 years ago
B is the winner!
HE
Herschel
2 years ago
E) vipw -u dumb bob
AN
Anissa
2 years ago
B) chown bob:bob bobsfile
OL
Olive
2 years ago
E) vipw -u bob bobsfile
LA
Latonia
2 years ago
D) chperm 664 bobsfile
RO
Rossana
2 years ago
C) chmod +x bobsfile
MA
Maile
2 years ago
B) chown bob:bob bobsfile
LE
Leigha
2 years ago
A) chgrp bob bobsfile
JA
Jaleesa
2 years ago
I guess option A) chgrp bob bobsfile would work if bob was a group, but then he'd have to share the file with the 'whee1' group. Ain't nobody got time for that!
WE
Wendell
2 years ago
I'm not even going to bother with D) chperm 664 bobsfile - that's not a real command. B is the only logical choice.
LI
Lisandra
2 years ago
Hmm, E) vipw -u bob bobsfile sounds like it's trying to edit the system's password file, which is not what we want here. B is the way to go.
DA
Danica
2 years ago
I tried option C) chmod +x bobsfile, but that just added execute permission, not write permission. Definitely going with B!
DO
Dominga
2 years ago
Good choice! Option B is the correct answer.
CH
Chau
2 years ago
Option B) chown bob:bob bobsfile will grant user bob write permission to the file.
KR
Kristeen
2 years ago
Option C) chmod +x bobsfile only adds execute permission, not write permission.
GL
Gladys
2 years ago
B) chown bob:bob bobsfile is the correct answer. We need to change the owner of the file to the user bob to grant write permission.
SU
Sueann
2 years ago
D) chperm 664 bobsfile
TR
Trina
2 years ago
C) chmod +x bobsfile
WE
Weldon
2 years ago
B) chown bob:bob bobsfile
FE
Felicitas
2 years ago
A) chgrp bob bobsfile
DU
Dulce
2 years ago
I agree with Teri, using chown to change the owner of the file to Dulce will give him write permission.
TE
Teri
2 years ago
I think the superuser should use option B) chown bob:bob bobsfile to grant write permission to bob.