- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- World-writable permissions seem to resurface!
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
тАО04-27-2005 08:57 PM
тАО04-27-2005 08:57 PM
World-writable permissions seem to resurface!
What are the things that can cause world-writable permissions to resurface after they've been revoked? Our customer is having this problem and as such their audit by PwC always fails when it comes to this item. What can they do to ensure that it doesn't resurface again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 09:01 PM
тАО04-27-2005 09:01 PM
Re: World-writable permissions seem to resurface!
For any specific directory??
who is the owner for these directories??
check your umask in /etc/profile and the .profile in the owner of the directory for an incorrect umask.
a 022 umask should be fine and default
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 09:11 PM
тАО04-27-2005 09:11 PM
Re: World-writable permissions seem to resurface!
Thanks for the quick response! I've attached a couple of files from their servers. Please see if this helps to determine anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 09:24 PM
тАО04-27-2005 09:24 PM
Re: World-writable permissions seem to resurface!
Most of the files are log files and not configuration files. Most of the files/directories have sticky bit set, so most of the files can not be deleted.
/dev/pts/* is supposed to have rw permissions, so that a user will be able to login/write to the terminal.
Regards,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 10:11 PM
тАО04-27-2005 10:11 PM
Re: World-writable permissions seem to resurface!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 10:17 PM
тАО04-27-2005 10:17 PM
Re: World-writable permissions seem to resurface!
Good solution Pete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2005 10:32 PM
тАО04-27-2005 10:32 PM
Re: World-writable permissions seem to resurface!
I was just informed by the customer that the umask in /etc/profile is set to 037, which I believe is more restrictive?
Pete,
LOL! I'm sure that'll work and will address the auditor issue, but is there a better (common way) to solve this problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 01:50 AM
тАО04-28-2005 01:50 AM
Re: World-writable permissions seem to resurface!
/dev = 777 should NEVER have this permission. It must be 755.
/dev/vg00 = 777 probably has been that way since installation due to a lack of umask in the default HP-UX system. Change it to 755
/dev/rmt/
pwgr can be disabled if you have reasonable sized passwd files (a few hundred users or less). Just remove /var/spool/sockets/pwgr directory and the contents.
Some of the flagged items are 'blind' meaning that the auditor's tool is too dumb to exclude world-writable files and directories that are supposed to be in that state (ie, /dev/console /var/tmp /tmp, etc).
That takes care of most of the items. HOWEVER, if you've fixed these items before and they revert back again (especially the ones mentioned above like /dev) then change the root password immediately and every time a sysadmin calls to find out why root doesn't work, ask them about these changes. Also look in sulog and search through your sudo log (and syslog). (you do have sudo, right?) And of course search through .sh_history for root. Also check logins -d. If you see multiple UID=0, you should assume you've been hacked ('cause no sysadmin would ever allow duplicate root users--see comment about sudo)
Bill Hassell, sysadmin