Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 702-100 Exam - Topic 4 Question 30 Discussion

Given the following listing-rw-r---r--- 1 root whee1 15254 Nov 13 08:55 bobsfileHow can the superuser grant the user bob write permission to this file?
A) chgrp bob bobsfile
B) chown bob:bob bobsfile
C) chmod +x bobsfile
D) chperm 664 bobsfile
E) vipw -u bob bobsfile

LPI 702-100 Exam - Topic 4 Question 30 Discussion

Actual exam question for LPI's 702-100 exam
Question #: 30
Topic #: 4
[All 702-100 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Sheridan
9 months ago
I’m surprised there’s no direct chmod option for user permissions!
upvoted 0 times
...
Ethan
9 months ago
Definitely not C, that just adds execute permission.
upvoted 0 times
...
Leota
9 months ago
Wait, can you really use chperm? That sounds off.
upvoted 0 times
...
Gary
10 months ago
I think A could work too, but not for write access.
upvoted 0 times
...
Frederic
10 months ago
Option B is the right choice!
upvoted 0 times
...
Annelle
10 months ago
Chgrp seems off for this, but I feel like I might have seen chown used in a similar context before.
upvoted 0 times
...
Cyril
10 months 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.
upvoted 0 times
...
Lashawna
10 months ago
I remember something about chown, but I can't recall if it actually grants write permission or just changes ownership.
upvoted 0 times
...
Annmarie
11 months ago
I think we need to change the permissions, but I'm not sure if it's chmod or something else.
upvoted 0 times
...
Diego
11 months 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.
upvoted 0 times
...
Evan
11 months 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.
upvoted 0 times
...
Germaine
11 months 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.
upvoted 0 times
...
Lachelle
11 months 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.
upvoted 0 times
...
Justine
11 months 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.
upvoted 0 times
...
Scot
2 years ago
E) vipw -u bob bobsfile? More like 'vipw -u dumb bob' amirite? B is the winner!
upvoted 0 times
Terrilyn
2 years ago
B is the winner!
upvoted 0 times
...
Herschel
2 years ago
E) vipw -u dumb bob
upvoted 0 times
...
Anissa
2 years ago
B) chown bob:bob bobsfile
upvoted 0 times
...
Olive
2 years ago
E) vipw -u bob bobsfile
upvoted 0 times
...
Latonia
2 years ago
D) chperm 664 bobsfile
upvoted 0 times
...
Rossana
2 years ago
C) chmod +x bobsfile
upvoted 0 times
...
Maile
2 years ago
B) chown bob:bob bobsfile
upvoted 0 times
...
Leigha
2 years ago
A) chgrp bob bobsfile
upvoted 0 times
...
...
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!
upvoted 0 times
...
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.
upvoted 0 times
...
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.
upvoted 0 times
...
Danica
2 years ago
I tried option C) chmod +x bobsfile, but that just added execute permission, not write permission. Definitely going with B!
upvoted 0 times
Dominga
2 years ago
Good choice! Option B is the correct answer.
upvoted 0 times
...
Chau
2 years ago
Option B) chown bob:bob bobsfile will grant user bob write permission to the file.
upvoted 0 times
...
Kristeen
2 years ago
Option C) chmod +x bobsfile only adds execute permission, not write permission.
upvoted 0 times
...
...
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.
upvoted 0 times
Sueann
2 years ago
D) chperm 664 bobsfile
upvoted 0 times
...
Trina
2 years ago
C) chmod +x bobsfile
upvoted 0 times
...
Weldon
2 years ago
B) chown bob:bob bobsfile
upvoted 0 times
...
Felicitas
2 years ago
A) chgrp bob bobsfile
upvoted 0 times
...
...
Dulce
2 years ago
I agree with Teri, using chown to change the owner of the file to Dulce will give him write permission.
upvoted 0 times
...
Teri
2 years ago
I think the superuser should use option B) chown bob:bob bobsfile to grant write permission to bob.
upvoted 0 times
...

Save Cancel