- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Chmod a 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
05-29-2003 05:03 AM
05-29-2003 05:03 AM
lrwxr-xr-x 1 root sys 27 Oct 24 2001 snmpd.conf -> /etc/SnmpAgent.d/snmpd.conf
I want to change the link to 0440.
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:08 AM
05-29-2003 05:08 AM
Re: Chmod a link file
Remove the link, set your umask and recreate the link.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:08 AM
05-29-2003 05:08 AM
SolutionFirst, the permissions and ownership of a link do not matter.
To change the permissions of the link, remove the link (the entity to which it points is untouched); set the 'umask' you want; and recreate the link.
In the case of a link's ownership, using the '-h' option of 'chown' causes the ownership or group change to apply to the link and not the target.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:14 AM
05-29-2003 05:14 AM
Re: Chmod a link file
perms on a link is inherrited from the umask of the directory.
those does'nt matter anyway since the linked binary controls the execution rights.
everyone else has giving you the correct method to fix the link perms.
live free or die
donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:15 AM
05-29-2003 05:15 AM
Re: Chmod a link file
The perms on the link are irrelevant. The destination perms are what count.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:15 AM
05-29-2003 05:15 AM
Re: Chmod a link file
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:18 AM
05-29-2003 05:18 AM
Re: Chmod a link file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:22 AM
05-29-2003 05:22 AM
Re: Chmod a link file
-Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:24 AM
05-29-2003 05:24 AM
Re: Chmod a link file
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 05:32 AM
05-29-2003 05:32 AM
Re: Chmod a link file
I certainly feel your pain.
This is one of my pet peeves.
What good are scans if the personnel conducting them have NO clue to the relevance of the output?
You should hold firm on this one & make it VERY clear to mgmnt that in this case they are simply wasting resources. Remind them that EVERY time a link is created or recreated there will be an absolutely unnecessary waste of resources to set link perms. At the least mgmnt should simply ask the scanners WHY they think the link perms are important.
MORAL - Even the best SA can't fix stupid.
Rgds,
Jeff (OK, my rant's over)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 06:09 AM
05-29-2003 06:09 AM
Re: Chmod a link file
Thanks for sharing. I would like to share that info w/ mngt. However, I like my job and the low man on the toteum pole doesn't have much of a voice. Besides, if I didn't have all of these security issues to correct, I probably wouldn't have a job here for long ;-)
John