- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- permissions of 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
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
04-05-2004 09:56 PM
04-05-2004 09:56 PM
permissions of a link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 10:00 PM
04-05-2004 10:00 PM
Re: permissions of a link
You should re-create the link to change its permissions.
Re-create the link as that specific user which you are changing the permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 10:02 PM
04-05-2004 10:02 PM
Re: permissions of a link
Normaly you can not change the permissions of a link. Attaching a binary file which can change the permission.
Filename is lchmod.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 10:05 PM
04-05-2004 10:05 PM
Re: permissions of a link
You can not change the rights of a symbolic link,
check the chmod man page:
If chmod is used on a symbolic link, the mode of the file referred to
by the link is changed.
You can do a chown with the -h option.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 10:14 PM
04-05-2004 10:14 PM
Re: permissions of a link
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.
If file1 is a file and new_file is a link to an existing file or an existing file with other links, new_file is disassociated from the existing file and links and linked to file1. When ln creates a link to a new or existing file name, ownerships and permissions are always identical to those for the file to which it is linked. If chown, chgrp, or chmod is used to change ownership or permissions of a file
or link, the change applies to the file and all associated links. The last modification time and last access time of the file and all associated links are identical (see chown(1) and chmod(1)).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 10:16 PM
04-05-2004 10:16 PM
Re: permissions of a link
as already said you cannot change permissions on link. Then:
# touch pippo
# ll pippo
-rw-r--r-- 1 root sys 0 Apr 6 12:02 pippo
# umask u=rw,g=r,o=r
# ln -s pippo peppe
# ll peppe
lrw-r--r-- 1 root sys 5 Apr 6 12:03 peppe -> pippo
Anyway you can use umask (man umask for more details) in order to change umask on your need.
# umask -S
to see the current setting for umask.
HTH.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 12:38 AM
04-06-2004 12:38 AM
Re: permissions of a link
After change not possible.
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 02:11 AM
04-06-2004 02:11 AM
Re: permissions of a link
Here is an attached C source for a program called lchmod.
It will compile with the Bundled C compiler because it is intentionally done in K & R C although you could easily change the syntax to ANSI/C, if you like.
Compile it like this:
cc -o lchmod chmod.c
Use it like this:
lchmod 1755 mylink
Note: This program only understands octal permissions; the task of adding symbolic modes is left as an exercise but the octals work just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 08:26 PM
04-06-2004 08:26 PM
Re: permissions of a link
Thanks
CW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 08:35 PM
04-06-2004 08:35 PM