- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SUID bit enaled on the filesystem
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
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
тАО03-06-2007 07:20 AM
тАО03-06-2007 07:20 AM
SUID bit enaled on the filesystem
What is the pros/cons of setting the SUID bit on a filesystem? Appricaite your comments.
Thanks
kesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 07:28 AM
тАО03-06-2007 07:28 AM
Re: SUID bit enaled on the filesystem
Pro: It will make it much easier to hack your system. No. That's a con.
Con: It will enable you to create security hazards, eg programs with root privileges that can be used to hack your system.
It will make you fail your next security audit.
It would be helpful to know why you are asking this question.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 07:31 AM
тАО03-06-2007 07:31 AM
Re: SUID bit enaled on the filesystem
If you mean as a mount option it will allow files with the suid bit set to run suid. But if you mean you want to suid a directory. Then when a file is created in the directory the file would have the same owner as the SUID directory, regardless of who creates the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 07:42 AM
тАО03-06-2007 07:42 AM
Re: SUID bit enaled on the filesystem
As a general rule, I'm not opposed to setuid programs but setuid scripts are a dangerous security hole and should never be allowed.
Rather than setting the nosuid mount option, it typically makes more sense to have a daemon run periodically and look for any setuid/setgid files and compare via cksum to known, safe versions. After a system setup, I typically create a database that has the time of last modication, owner, group, and mode of each setuid/program and then periodically compare my system to the values in the database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 08:43 AM
тАО03-06-2007 08:43 AM
Re: SUID bit enaled on the filesystem
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-06-2007 09:07 AM
тАО03-06-2007 09:07 AM
Re: SUID bit enaled on the filesystem
Sometimes SETUID is a necessity for certain applications. One example could be Oracle, which will not start if the SETUID is not set/allowed on its oracle binary file.
It is best to evaluate the setting on a case by case basis. You may need to leave it at the defaul in certain cases as discussed above.