Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 18179  / 1 Year ago, tue, february 7, 2023, 8:19:02

I have changed the permissions to allow for:



-rwxrwxr-- 1 root root 2214 Oct  4 09:45 vimrc


and it still won't let me save to the file. I only have one user on this box and it has admin rights. Everytime I make changes to the file and try and save it tells me I'm trying to make changes to a read only file and to hit ! to override. When I do that and hit !ZZ it still doesn't save.


More From » permissions

 Answers
0

-rwxrwxr-- 1 root root means the file belongs to the root user and that only him and users from the group 'root' may write to it.



You can use your sudo powers and run sudo vim vimrc or you could change the owner with sudo chown <insert-your-username-here> vimrc and then edit it with vim vimrc


[#29169] Wednesday, February 8, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
theurn

Total Points: 30
Total Questions: 110
Total Answers: 111

Location: Bahrain
Member since Fri, Sep 16, 2022
2 Years ago
theurn questions
Tue, Apr 5, 22, 14:18, 2 Years ago
Mon, Feb 14, 22, 16:29, 2 Years ago
Sat, Apr 8, 23, 05:26, 1 Year ago
Tue, Jan 10, 23, 23:59, 1 Year ago
Fri, Apr 8, 22, 01:36, 2 Years ago
;