HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- softlink creation ownership of root
Operating System - HP-UX
1826647
Members
3057
Online
109695
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 10:16 AM
08-29-2008 10:16 AM
Hello,
I created soft links by logging as a different userid than root. But i observed that softlinks got created with ownership as root.
Can anyone explain why it is so and how to create the softlinks with userid logged in to the boxes ?
Thanks,
Shiv
I created soft links by logging as a different userid than root. But i observed that softlinks got created with ownership as root.
Can anyone explain why it is so and how to create the softlinks with userid logged in to the boxes ?
Thanks,
Shiv
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 10:28 AM
08-29-2008 10:28 AM
Re: softlink creation ownership of root
What version of OS ?
None of my 11.22, 11.23 or 11.31 servers exibit this behavior.
I do not believe the link permissions matter with regards the real file permissions.
After creating the soft link can you remove it as the same user ? Are the real permissions working correctly ?
If so then not a bother.
None of my 11.22, 11.23 or 11.31 servers exibit this behavior.
I do not believe the link permissions matter with regards the real file permissions.
After creating the soft link can you remove it as the same user ? Are the real permissions working correctly ?
If so then not a bother.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 10:32 AM
08-29-2008 10:32 AM
Solution
Hi Shiv:
The ownership and/or permisssions of symbolic (soft) links is immaterial. That is, it is the ownership and permissions of the file or directory pointed at by the link that matters. Nothing more, nothing less.
If you create a symbolic link using the 'root' account, then the link will be owned by 'root'. Period.
If you use 'chown' against the symbolic link it it the target (file or directory) of the symbolic link that is changed.
However, if you do 'chown -h' against the symbolic link, the ownership of the *link* and not its target that is altered. This will probably make you happy :-)
Regards!
...JRF...
The ownership and/or permisssions of symbolic (soft) links is immaterial. That is, it is the ownership and permissions of the file or directory pointed at by the link that matters. Nothing more, nothing less.
If you create a symbolic link using the 'root' account, then the link will be owned by 'root'. Period.
If you use 'chown' against the symbolic link it it the target (file or directory) of the symbolic link that is changed.
However, if you do 'chown -h' against the symbolic link, the ownership of the *link* and not its target that is altered. This will probably make you happy :-)
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP