View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-08-2009, 03:49 PM   #1
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


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.


Old 04-08-2009, 04:23 PM   #2
Senior Member
Registered: Sep 2005
Location: Russia
Distribution: NixOS (
Posts: 1,899

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, 04:28 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,986

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
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.


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

All times are GMT -5. The time now is 03:15 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