- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: permission link file
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
08-14-2002 03:31 AM
08-14-2002 03:31 AM
Why do I see the permission different between the link file and original file?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 03:33 AM
08-14-2002 03:33 AM
Solutionpermissions 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.
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 03:37 AM
08-14-2002 03:37 AM
Re: permission link file
The permissions of a symbolic link are immaterial. The permissions of file pointed to by the link are the ones that matter.
In the case you describe, it appears that you created the link when your 'umask' was zero, and issued a 'chmod 444' for file to which it points.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 04:09 AM
08-14-2002 04:09 AM
Re: permission link file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 04:12 AM
08-14-2002 04:12 AM
Re: permission link file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 04:21 AM
08-14-2002 04:21 AM
Re: permission link file
You can make the permissions of your symbolic link the same as your file by first removing the symbolic link (which does *not* remove the file to which it points). Since your file has permissions of 444, set your 'umask' to 333 (since 777 - 333 = 444) and reestablish the symbolic link.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 10:07 AM
08-14-2002 10:07 AM
Re: permission link file
# umask 777
# ln -s /etc/issue mylink
# ll mylink
l--------- 1 blhassel users 10 Aug 14 13:58 xy -> /etc/group
# head -1 mylink
root::0:root
So yuo see that a link zero permissions still performs it's task and the 'real' permissions belong to the object pointed to by the link.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 10:28 AM
08-14-2002 10:28 AM
Re: permission link file
That's some mighty powerful HP-UX magic you wield there changing mylink to xy & /etc/issue to /etc/group!
I can't wait 'til I grow up to be as powerful a SysAdmin magician!!!! =~)
Cheers,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2002 01:11 PM
08-14-2002 01:11 PM
Re: permission link file
and for the not-so-mighty of us, we can simply use the option "-L" (upper case ELL) like here:
ls -lL you-link
and then "ls" will show the name of the link (and NO "->"), but the permissions of the real file!
HTH,
Wodisch