- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Verysimple Question
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-24-2001 10:32 PM
тАО06-24-2001 10:32 PM
Verysimple Question
I am not able to change the permissiond of a link under /sbin/rc2.d /S98ldapserver .I want to take the write permissions back ,at present its 777.this script is link to a script in /sbin/init.d/s98ldapserver.Can anyboy help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2001 10:38 PM
тАО06-24-2001 10:38 PM
Re: Verysimple Question
Simply, you cannot change permissions of the symbolic links.
Not important because what we are interested in are just permissions to what symbolic link points.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2001 11:22 PM
тАО06-24-2001 11:22 PM
Re: Verysimple Question
Hi Nitin
U can not the change permission of a symbolic link. U will have to change the permission of original file. But in case of hard link U can change the permission. In case of symbolic link inode numbers will be different. U can see this #ll -i linkname
But in case of hard link inode number will be same for both.
I n ur case it is symbolic link. So U can not change permission of link.
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 12:15 AM
тАО06-25-2001 12:15 AM
Re: Verysimple Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 03:55 AM
тАО06-25-2001 03:55 AM
Re: Verysimple Question
If chmod is used on a symbolic link,
the mode of the file referred to
by the link is changed.
So, you need to remove the link (!)
switch to owner/group where the link should belong to and set umask apropriate when you create the link.
777 is bad, because anybody would be able to delete your link due to write-permission.
Nevertheless, unlike hardlinks, diffrent inodes make it possible to have diffrent permissions:
-rwx------ 1 e30adm sapsys 0 Jun 25 13:54 a
lrwxrwxr-x 1 e30adm sapsys 1 Jun 25 13:54 b -> a
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2001 04:12 AM
тАО06-25-2001 04:12 AM
Re: Verysimple Question
there is no permissions to link as such.
Hard links are created with the same wnerships 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-25-2001 09:26 AM
тАО06-25-2001 09:26 AM