- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- modifying 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
Forums
Discussions
Discussions
Discussions
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
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-09-2009 11:13 AM
03-09-2009 11:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:16 AM
03-09-2009 11:16 AM
Re: modifying link
Remove (rm) the link and recreate it where you want it to point.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:22 AM
03-09-2009 11:22 AM
Re: modifying link
Thanks for the response. Since I am new to this, can you please let me know from where to remove the link and how to change it to other destination?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:33 AM
03-09-2009 11:33 AM
Re: modifying link
Consider this:
# touch /tmp/myfile # create a file for play
# ln -s /tmp/myfile /tmp/mylink # point to it
# ls -l /tmp/mylink
# rm /tmp/mylink
# ln -s /tmp/myfile /tmp/yourlink # point with a different link
# ls -l /tmp/yourlink
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:35 AM
03-09-2009 11:35 AM
Re: modifying link
Be sure the read the manpages for 'ln'. I have assumed in my examples that you had and want to create symbolic (soft) links. Hence the use of the '-s' switch.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:44 AM
03-09-2009 11:44 AM
Re: modifying link
Please consider the below scenario and advice -
there is a link created for /oracle/KPC:
lrwxr-xr-x 1 orakhr dba 3 Dec 17 15:00 KPC -> KHR
This link currenlty goes to /oracle/KHR
How can I change it to go to /oracle/KTC ?Also how can I change the owner of the link that to oraktc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:47 AM
03-09-2009 11:47 AM
Re: modifying link
# rm KPC
# ln -s KTC KHR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:49 AM
03-09-2009 11:49 AM
Re: modifying link
# chown orakhr /oracle/KTC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:50 AM
03-09-2009 11:50 AM
Re: modifying link
http://forums11.itrc.hp.com/service/forums/helptips.do?#33
This is a way of saying thanks to the right answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:54 AM
03-09-2009 11:54 AM
Re: modifying link
This link currenlty goes to /oracle/KHR
How can I change it to go to /oracle/KTC
So presently
there is a link created for /oracle/KPC:
lrwxr-xr-x 1 orakhr dba 3 Dec 17 15:00 KPC -> KHR
You like file /oracle/KPC to link to /oracle/KTC
# cd /oracle
# rm KPC
# ln -s KTC KPC
With regards to ownership
# chown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:56 AM
03-09-2009 11:56 AM
Re: modifying link
# chown orakhr /oracle/KTC
Please no point for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:57 AM
03-09-2009 11:57 AM
Re: modifying link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 11:58 AM
03-09-2009 11:58 AM
Re: modifying link
> Also how can I change the owner of the link that to oraktc.
Use 'chown -h' [see the manpages for chown()].
Having said that, you should remember that the permissions and/or ownership of a (symbolic) link do not matter. It's the permissions and the ownership of the file or directory to which the symbolic link points that determine access.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 12:01 PM
03-09-2009 12:01 PM
Re: modifying link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 12:02 PM
03-09-2009 12:02 PM
Re: modifying link
Using a simple 'chown' (without the -h) on a symbolic link changes the ownership of the thing that the link points to, NOT the ownership of the link itself!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 02:10 PM
03-09-2009 02:10 PM