HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Set group, user bit and symbolic link
Operating System - HP-UX
1832609
Members
2477
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-28-2002 02:26 AM
02-28-2002 02:26 AM
Hi,
1) How to get the following:
-rwsr-sr-- file
Tried chmod u+s file but got the following:
-rwSr--r-- file
2) How to create soft link with the same permission of the above file ?
Thanks in advance,
YC
1) How to get the following:
-rwsr-sr-- file
Tried chmod u+s file but got the following:
-rwSr--r-- file
2) How to create soft link with the same permission of the above file ?
Thanks in advance,
YC
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 02:34 AM
02-28-2002 02:34 AM
Solution
In answer to your questions:
1) Run:
$ chmod u+x,g+xs
The capital S indicates that the setuid bit is set but the execute bit is not. See the ls(1) man page for a description of this.
2) The permissions of a symbolic link are not important - those on the underlying file will always be used.
Regards,
Steve
1) Run:
$ chmod u+x,g+xs
The capital S indicates that the setuid bit is set but the execute bit is not. See the ls(1) man page for a description of this.
2) The permissions of a symbolic link are not important - those on the underlying file will always be used.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 05:45 AM
02-28-2002 05:45 AM
Re: Set group, user bit and symbolic link
Hi,
Two ways:
chmod u=rwxs,g=rxs,o=r file
-or-
chmod 6754 file
Although the second method is
"Obsolescent", I still find it easier.
As Steve said, perms on a symlink don't really matter however if you modify your umask first then the softlink's permissions will be different.
Darrell
Two ways:
chmod u=rwxs,g=rxs,o=r file
-or-
chmod 6754 file
Although the second method is
"Obsolescent", I still find it easier.
As Steve said, perms on a symlink don't really matter however if you modify your umask first then the softlink's permissions will be different.
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2002 05:53 AM
02-28-2002 05:53 AM
Re: Set group, user bit and symbolic link
By the way, you can't change the permissions on an existing symlink. You would have to delete it, change your umask, then recreate it. But again, the permissions don't really matter on a symlink.
Also, from the man page for umask: Note that the file creation mode mask does not affect the set-user-id, set-group-id, or "sticky" bits.
Since umask doesn't affect the above bits and since you can't modify perms on an existing symlink, you can't set a symlink to the perms you want.
Darrell
Also, from the man page for umask: Note that the file creation mode mask does not affect the set-user-id, set-group-id, or "sticky" bits.
Since umask doesn't affect the above bits and since you can't modify perms on an existing symlink, you can't set a symlink to the perms you want.
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP