#StackBounty: #permissions #vim #symbolic-link How edit anyway .conf on symlink using vim?

Bounty: 100

I have file in ../new-path/ dir.

lrwxrwxrwx 1 root root   32 Sep  6 19:43 test1.conf -> ../new-path1/test1.conf

When i edit it with Vim using sudo vim test1.conf on under Vim dialog said.

"test1.conf" [Permissions Denied]

how i edit it anyway on symlink using Vim. i really newbie about symlink.


I did tried this post, it will remove files/folders and symbolic link of course, but i need only remove symbolic link as independent file without it removed or it unlink cause i don’t have backup anything.


The output of lsattr $(readlink -f test1.conf)

--------------e---- ./test2.conf
--------------e---- ./default-ssl.conf
lsattr: Operation not supported While reading flags on ./test1.conf


The output of ls -l ../new-path1/test1.conf

lrwxrwxrwx 1 root root 32 Sep 10 14:13 ../new-path1/test1.conf -> ../new-path1/test1.conf

Thanks for anyone advice, Hope anyone can help me.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.