LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   change ownership for symbolic link (https://www.linuxquestions.org/questions/solaris-opensolaris-20/change-ownership-for-symbolic-link-449469/)

DarReNz 05-28-2006 10:31 PM

change ownership for symbolic link
 
Hi all,

i have this symbolic link file in which i have remove and recreated it and after changing the permission i do a ln -fs source file link file, i get a "file exists". This is able to work in AIX but not Solaris, so how do i solve this ? Thanks

imagineers7 05-29-2006 01:45 AM

Hi DarReNz,

when I tried

ln -s <somefile> <linktoit>

It created a link to "somefile" named as "linktoit"

Then I tried :-
ln -s <newlinkname> <somefile>

which gave following error:-
ln: `somefile': File exists

Then I tried :-
ln -s <linktoit> <otherfile>

It gave following error:-

ln: `linktoit': File exists


May be you have swapped positions mistakenly or the files really exist.

Hope, this will help you


All times are GMT -5. The time now is 10:34 AM.