- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- about the permission!
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
09-16-2003 05:46 PM
09-16-2003 05:46 PM
about the permission!
why do two "s" exist in one permission !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 05:56 PM
09-16-2003 05:56 PM
Re: about the permission!
The "s" in first three bits is "suid". When the program runs, it will run as the owner of that file irrespective of whomsoever started it.
The s in next three bits is "sgid". So, when the program runs, it will run with the group as the group of that file irrespective of the group of the person running it.
For ex., if you set the owner of this file to "root" and if you start it as an ordinary user, then it will run as root.
These may open security issues on the system.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 06:02 PM
09-16-2003 06:02 PM
Re: about the permission!
And the second s means set GID, so when its is run it will be run as the group of that file irrespective of what group the user running the command belongs to.
This is soemtimes required coz when you run sucj commands and they try to access some files which do not belong to that group it will fail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 07:47 PM
09-16-2003 07:47 PM
Re: about the permission!
There is something called real user ID and effective UID. under the normal circumstances without the SUID bit set, the real user ID and the effective UID of a process will be set the same
The effective user id is used to determine file access permissions. When Set user ID bit is set then the effective user ID of the process will be set to the user ID of the owner of the executable.
Setuid can be set as follows
# chmod 4755 filename
the filename will have permissions rwsr-xr-x
# chmod 2755 fileset
will set the SGID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2003 09:11 PM
09-16-2003 09:11 PM
Re: about the permission!
-r-sr-xr-x 5 root bin 45056 Nov 14 2000 /usr/bin/passwd
This is because the program needs to be able to update /etc/passwd, a file only root can change. SUID exists in this case to let a regular user update his password, which is in a file that user does not own.
In your case however, these programs have root priviledges. I know of very few reasons why a database program would need root priviledges.
This is a security hazard, because your database might be exploited to gain root priviledges and possibly control of your whole system.
Don't change it back however without checking with Informix support. Don't change it with the database running, you might crash it or lock its shared memory segments.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com