- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: changing modification time for a 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
Forums
Discussions
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
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
07-17-2006 01:26 AM
07-17-2006 01:26 AM
changing modification time for a link
Thx !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 01:32 AM
07-17-2006 01:32 AM
Re: changing modification time for a link
Even if you root user, time stamp wouldn't change for Symbolik link. If it is hardlink, you can change as owner.
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 01:34 AM
07-17-2006 01:34 AM
Re: changing modification time for a link
There really is no need to worry about the modification timestamp ('mtime') nor permissions nor ownership of a symbolic link. It's the file or directory to which the link points that is generally followed and is of interest.
If you "must" alter the modification timestamp ('mtime') of a symbolic link, the easist way is to remove the link and recreate it. The entity pointed to by the link will not be removed, so the operation is safe.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 01:44 AM
07-17-2006 01:44 AM
Re: changing modification time for a link
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:18 AM
07-17-2006 02:18 AM
Re: changing modification time for a link
Perhaps I misled you. If you remove a symbolic and recreate it, the 'mtime' of the link will be the current date/time. That's about the only alteration in the timestamp that you can make. Again, a symbolic link's permissions, ownership and timestamps are essentially meaningless, since links are followed to the entity to which the link points. It's the permisssions and ownership of the referenced link that counts.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:22 AM
07-17-2006 02:22 AM
Re: changing modification time for a link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:23 AM
07-17-2006 02:23 AM
Re: changing modification time for a link
There's really no good way to do this. You could temporarily change your system date, create the symlink, and then restore the date, but that's ugly. Or you could modify the inode of the symlink at the disk level, but that's also ugly. Both options are potentially dangerous.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:41 AM
07-17-2006 02:41 AM