exam questions

Exam SK0-005 All Questions

View all questions & answers for the SK0-005 exam

Exam SK0-005 topic 1 question 265 discussion

Actual exam question from CompTIA's SK0-005
Question #: 265
Topic #: 1
[All SK0-005 Questions]

Joe, a user in the IT department, cannot save changes to a sensitive file on a Linux server. An is -la shows the following listing:
-rw-r--r 1 Ann IT 6780 12 June 2019 filename

Which of the following commands would BEST enable the server technician to allow Joe to have access without granting excessive access to others?

  • A. chmod 777 filename
  • B. chown Joe filename
  • C. chmod g+w filename
  • D. chgrp IT filename
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
surfuganda
4 months ago
Selected Answer: C
Option A (chmod 777 filename): This command would grant read, write, and execute permissions to everyone (owner, group, and others) on the file. This is not the way. Option B (chown Joe filename): This command changes the owner of the file to Joe. This is not the way. Option C (chmod g+w filename): This command adds write permission for the group associated with the file. Since Joe belongs to the "IT" group (as indicated in the file listing), this command would allow him to write to the file without granting excessive access to others. This is the correct approach because it specifically targets the group, providing the necessary access without compromising security for other users. This is the way. Option D (chgrp IT filename): This command changes the group ownership of the file to "IT." This is not the way.
upvoted 3 times
Stache
3 weeks, 2 days ago
What surf said, running D would be redundant and change nothing. C is correct.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago