New Year Sale 2026! 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

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
3 months ago
I’m surprised there’s no direct chmod option for user permissions!
upvoted 0 times
...
Ethan
3 months ago
Definitely not C, that just adds execute permission.
upvoted 0 times
...
Leota
3 months ago
Wait, can you really use chperm? That sounds off.
upvoted 0 times
...
Gary
4 months ago
I think A could work too, but not for write access.
upvoted 0 times
...
Frederic
4 months ago
Option B is the right choice!
upvoted 0 times
...
Annelle
4 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
4 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
4 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
5 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
5 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
5 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
5 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
5 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
5 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
1 year ago
E) vipw -u bob bobsfile? More like 'vipw -u dumb bob' amirite? B is the winner!
upvoted 0 times
Terrilyn
1 year ago
B is the winner!
upvoted 0 times
...
Herschel
1 year ago
E) vipw -u dumb bob
upvoted 0 times
...
Anissa
1 year ago
B) chown bob:bob bobsfile
upvoted 0 times
...
Olive
1 year ago
E) vipw -u bob bobsfile
upvoted 0 times
...
Latonia
1 year ago
D) chperm 664 bobsfile
upvoted 0 times
...
Rossana
1 year ago
C) chmod +x bobsfile
upvoted 0 times
...
Maile
1 year ago
B) chown bob:bob bobsfile
upvoted 0 times
...
Leigha
1 year ago
A) chgrp bob bobsfile
upvoted 0 times
...
...
Jaleesa
1 year 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
1 year 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
1 year 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
1 year 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
1 year ago
Good choice! Option B is the correct answer.
upvoted 0 times
...
Chau
1 year ago
Option B) chown bob:bob bobsfile will grant user bob write permission to the file.
upvoted 0 times
...
Kristeen
1 year ago
Option C) chmod +x bobsfile only adds execute permission, not write permission.
upvoted 0 times
...
...
Gladys
1 year 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
1 year ago
D) chperm 664 bobsfile
upvoted 0 times
...
Trina
1 year ago
C) chmod +x bobsfile
upvoted 0 times
...
Weldon
1 year ago
B) chown bob:bob bobsfile
upvoted 0 times
...
Felicitas
1 year ago
A) chgrp bob bobsfile
upvoted 0 times
...
...
Dulce
1 year 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
1 year ago
I think the superuser should use option B) chown bob:bob bobsfile to grant write permission to bob.
upvoted 0 times
...

Save Cancel