- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change ownership of simbolic link
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО03-05-2006 03:02 PM
тАО03-05-2006 03:02 PM
I want to change the ownership of simbolic link on one of our UNIX servers. How can we change the ownership of simbolic links below from root:system to root:security?
lrwxrwxrwx 1 root system 32 Mar 05 22:26 mkuser.default -> /usr/lib/security/mkuser.default
lrwxrwxrwx 1 root system 28 Mar 03 05:49 mkuser.sys -> /usr/lib/security/mkuser.sys
lrwxrwxrwx 1 root system 22 Mar 03 05:49 scan -> /usr/lib/security/scan
Please help. High score will be given.
Thanks and Best Regards,
Dewa
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2006 03:20 PM
тАО03-05-2006 03:20 PM
SolutionYou cant change the group or user of a soft link file after you have created. To get what you want you need to change the effective uid or gid to what you want your symbolic (soft) link file to be. (where as you can do it with hard link).
Ok now back to what you want.
remove the soft link files first.
Then run newgrp security
this will change your group to security and user remains root and then create the soft link again.
You'll have the ownersip as you want.
Let me know if its not clear i'll post with an example.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2006 03:20 PM
тАО03-05-2006 03:20 PM
Re: Change ownership of simbolic link
you can use "chown" with following option "`--no-dereference'", on all unix machines.
Or, use the option "-h" with chown, this option will change ownership of symbolic link only.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2006 03:29 PM
тАО03-05-2006 03:29 PM
Re: Change ownership of simbolic link
More infos;
lchown is the system call used to change the ownership of symbolic link.
More info at;
http://www.gsp.com/cgi-bin/man.cgi?section=7&topic=symlink
http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_13.html
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2006 04:39 PM
тАО03-05-2006 04:39 PM
Re: Change ownership of simbolic link
Thanks alot. I really appriciate it.
Ii got the answer. It works well.
Thanks again.
Best Regards,
Dewa