Reputation: 1980
I have already created the folder /var/dir
as root. I want to symlink another directory /home/kute/test
to /var/dir
- and this have to run as 'kute' user.
But I am getting
/home/kute/test --> /var/dir/test
instead of getting
/home/kute/test --> /var/dir
Upvotes: 2
Views: 5676
Reputation: 241908
What command did you use?
ln -s /home/kute/test /var/dir
If you want /var/dir
to be the link, you have to remove/rename the existing directory first. It's not possible to have a directory and a link of the same name.
Upvotes: 4