Ann checks the perm...
 
Notifications
Clear all

Ann checks the permissions on the file and sees the following:

1 Posts
1 Users
0 Likes
87 Views
(@boehnkearden)
Posts: 697
Noble Member
Topic starter
 

Ann, a Linux administrator, wants to edit a configuration management file. When she opens the file to edit, her text editor reports that the file has been opened in read-only mode. She then tries to edit the file as root by elevating via sudo and is still unable to save any changes. The error message in her text editor says that the read-only option is set on the file.

Ann checks the permissions on the file and sees the following:

-rw-rw-r-- 1 root wheel 30 Jun 13 15:38 infrastructure.yml

Which of the following commands is the BEST option to allow her to successfully modify the file?

  • A . chmod 600 infrastructure.yml
    B. chown root: infrastructure.yml
    C. chattr -i infrastructure.yml
    D. chmod o+w infrastructure.yml

Show Answer Hide Answer

Suggested Answer: D

Explanation:

Reference: https://cets.seas.upenn.edu/answers/chmod.html
 
Posted : 14/12/2022 8:06 am
Topic Tags

Latest CompTIA XK0-004 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: