Ubuntu: .viminfo owned by root?


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  


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


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
Next Post »