LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-08-2009, 02:49 PM   #1
JoeDo
LQ Newbie
 
Registered: Mar 2009
Location: San Francisco
Distribution: RHEL 4u4 to 5u2
Posts: 1

Rep: Reputation: 0
Help with changing ownership of Symbolic Links


Hi,

I am in the process of building a RHEL 5.2 server for Oracle RAC. I changed ownership of the /dev/mapper partitions as noted below:
# chown oracle /dev/mapper/36006016068932300669afe00d7e8dd11

I tried doing the same with the symbolic links but when I ran "ls -l" I still see that root is the owner of the symbolic links.

Here is an example of what I ran:
# chown oracle /var/oracle/disk/asm_data1

Any input would be appreciated.

Thanks,

Joe
 
Old 04-08-2009, 03:23 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
1) Quick glance through "man chown" shows -h switch. So "chown -h oracle /var/oracle/disk/asm_data1"
2) Most operations on symlinks ignore ownership anyway. Ownership of the linked objects is what counts - so chown changes ownership of link target by default.
 
Old 04-08-2009, 03:28 PM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,377

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
As far as I know, a symbolic link does not have "permissions" of its own: it is literally a tiny-file which contains the name of another file. It doesn't confer any different access-privileges; it is just a tiny envelope with a filename inside.
 
  


Reply

Tags
chown, links, symbolic


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
ownership of symbolic links lel800 Linux - Newbie 13 06-04-2012 04:34 PM
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 07:03 AM
Symbolic Links SBN Linux - Newbie 5 08-09-2007 05:48 AM
change ownership for symbolic link DarReNz Solaris / OpenSolaris 1 05-29-2006 01:45 AM
Symbolic Links Greg_courageous Linux - Newbie 1 05-10-2004 07:05 AM


All times are GMT -5. The time now is 08:39 AM.

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