- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- File permissions of symbolic links on Tru64 UNIX
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-09-2004 04:01 AM
тАО06-09-2004 04:01 AM
File permissions of symbolic links on Tru64 UNIX
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 as a command or in the libraries. (It is on 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 04:42 AM
тАО06-09-2004 04:42 AM
Re: File permissions of symbolic links on Tru64 UNIX
I would assume, that they are only created by the installation and probably by mistake. chmod does not change access. I wonder, why your programme would see 777 on links as risk. The access on the file pointed to should be regulated by it's access and you can't delete a link, if you do not have the right to delete in the directory.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 05:37 AM
тАО06-09-2004 05:37 AM
Re: File permissions of symbolic links on Tru64 UNIX
There was a bug such that Default ACLs would affect the permissions set on symbolic links. I don't remember if the fix for this bug went into the current or next patch kit for V5.1A and V5.1B. But, it really doesn't matter. Tru64 UNIX IGNORES the permissions set on a symbolic link. It always acts as if the permissions on the symbolic link are 777 and only uses the permissions of the target of the link.
Ann
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 05:48 AM
тАО06-09-2004 05:48 AM
Re: File permissions of symbolic links on Tru64 UNIX
I wonder how a mistake could be made that would set the symbolic link permissions to 755.
I suspect I will have to explain why links are set to 777. The existance of 755 links doesn't help.
Regards,
Ray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 06:28 AM
тАО06-09-2004 06:28 AM
Re: File permissions of symbolic links on Tru64 UNIX
I wrote a quick C program using the symlink(2) subroutine. It has enabled me to create symbolic links with permissions other than 777.
Simlink(2) uses the umask, while ln(1) ignores it for symbolic links.
Does anyone know why ln(1) ignores the umask?
Is there anything in Tru64 that depends on the symbolic link permissions being set to 777?
Thanks,
Ray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2004 06:49 AM
тАО06-09-2004 06:49 AM
Re: File permissions of symbolic links on Tru64 UNIX
I did a find for ln on my system. I found four ln files. Of the four files, two are identical.
Of these files, only one version follows the umask. It is: /usr/opt/s5/bin/ln
The four ln's are:
/bin/ln
/sbin/ln
/usr/bin/ln
/usr/opt/s5/bin/ln
Regards,
Ray