Ubuntu: .viminfo owned by root?



Question:

The .viminfo file in my home directory is owned by root. Could anyone please explain how that could have happened without me asking it?

$ ls -la | grep .viminfo  -rw-------  1 root    root       4175 Nov  3 19:11 .viminfo  


Solution:1

I think it was created while using "sudo vim" to edit some file on the system.


Solution:2

This could happen if you run vim after sudo -s

You can chown it back to your id:group anyway, does't hurt;-)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »