- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- File Permission of Links
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
тАО06-18-2001 02:55 AM
тАО06-18-2001 02:55 AM
I have created several links using ln -s.
I need to change the actual permissions of the links.
When I enter the chmod command, it is the actual file permissions of the file refereed to that is changed.
Is this possible?
Thanks for any help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 03:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 03:09 AM
тАО06-18-2001 03:09 AM
Re: File Permission of Links
ignores the permissions of a symbolic link.
The system only allows you to change the permissions on the file
that is linked to the symbolic link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 03:10 AM
тАО06-18-2001 03:10 AM
Re: File Permission of Links
No, once created, it is not possible to change the permissions of a symbolic link. The ownership and permissions of symbolic links do not matter, however. It's the ownership and permissions of the file pointed to by the symbolic link that govern access and action.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 03:14 AM
тАО06-18-2001 03:14 AM
Re: File Permission of Links
there is no permissions to the link as such.
Hard links are created with the same ownerships and permissions as the file or directory to which they are linked.If ownership or permissions are changed on a link or file, the same changes appear on corresponding hard links. The ln command does not permit hard links to a directory
Symbolic links are created with the ownership of the creator and the permissions are of the creator's current umask. Once created, the
symbolic link ownership and permissions will not change, since the mode and ownership of the symbolic link is ignored by the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 03:39 AM
тАО06-09-2004 03:39 AM
Re: File Permission of Links
I've read the various notes about the futility of trying to change the permissions of symbolic links. I accept this.
I've also read the notes about the umask affecting the permissions of the symbolic links. I have not been able to recreate this.
My questions are: I have seen symbolic links on my Tru64 V5.1 and V5.1A systems that are either 755 or 777. How were the 755 symbolic links created? My umask was 022 when I created several symbolic links, but the links came out 777.
I've read the notes about lchmod, this is not on Tru64. (HP-UX, FreeBSD, others?)
I have tried this on several other UNIX systems: Solaris, IRIX, AIX, and Linux(Alpha). Only on the IRIX system does the umask affect the permissions of the symbolic link. The other systems set the permissions to 777.
Thanks,
Ray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 03:53 AM
тАО06-09-2004 03:53 AM
Re: File Permission of Links
Pls find attached the "lchmod" binary file from HP-UX 11. Works fine!
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 03:58 AM
тАО06-09-2004 03:58 AM
Re: File Permission of Links
Thanks for the lchmod file. I just don't have any systems that will run that file.
I'll re-enter my note in the Tru64 forum.
Thanks again,
Ray