Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 05-28-2006, 10:31 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 27

Rep: Reputation: 15
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
Old 05-29-2006, 01:45 AM   #2
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
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


link, permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why chmod cannot change symbolic link permission? mikeshn Linux - General 17 03-22-2012 07:08 PM
symbolic link/ commad name change. YellowFin Linux - Software 1 10-13-2005 11:26 PM
symbolic link ilnli Slackware 6 01-04-2005 05:05 PM
help with a symbolic link mykrob Linux - Software 6 11-22-2004 10:01 AM
Symbolic link. bulzbb Linux - General 8 03-19-2004 04:57 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration