LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 05-28-2006, 10:31 PM   #1
DarReNz
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
imagineers7
Member
 
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
 
  


Reply

Tags
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


All times are GMT -5. The time now is 12:58 PM.

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