- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/hosts devil permissions by default?
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
Forums
Discussions
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
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
08-25-2004 02:13 AM
08-25-2004 02:13 AM
I noticed that in all of our 11i servers, the default permission for /etc/hosts is set to 666.
Why such an important file is world-writable by default?
Thanks in advance :)
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:17 AM
08-25-2004 02:17 AM
Re: /etc/hosts devil permissions by default?
What version of 11i? We're running 11iv1 (11.11).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:18 AM
08-25-2004 02:18 AM
Re: /etc/hosts devil permissions by default?
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:19 AM
08-25-2004 02:19 AM
Re: /etc/hosts devil permissions by default?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:20 AM
08-25-2004 02:20 AM
Re: /etc/hosts devil permissions by default?
Do you know who last made changes to this file? Or is this the state after an installation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:22 AM
08-25-2004 02:22 AM
Re: /etc/hosts devil permissions by default?
maybe you have not umask set. By default files are created with 666 so umask "022" will result in 644 - that is what /etc/hosts should normally be
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:23 AM
08-25-2004 02:23 AM
Solutionfind / -perm -o+w
This should search your server for any other world writable files. You can then decide if they should be or not. Be careful though, as some (bad) applications may depend on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:24 AM
08-25-2004 02:24 AM
Re: /etc/hosts devil permissions by default?
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:25 AM
08-25-2004 02:25 AM
Re: /etc/hosts devil permissions by default?
That's a good question. I'd say someone/something had to have changed it.
Maybe admins are ftp'ing it around?
I checked several systems of ours & found a couple at 666 & the vast majority at 644.
A check of /usr/newconfig/etc/hosts shows it at 444. I believe 644 to be the proper perms.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:25 AM
08-25-2004 02:25 AM
Re: /etc/hosts devil permissions by default?
You can feel the difference between /etc/nsswitch.files there.
All default system files are given with 444 permission only.
Revoke it to normal. Some admin account known guys may be changed the one.
Regards
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:52 AM
08-25-2004 02:52 AM
Re: /etc/hosts devil permissions by default?
Wow, thanks all for your replies! I'll give points in a few seconds!
I forgot to say that we're using 11.11. Hmmm I thought that it was the standard permission (after installation) although in fact I can't assure this since I haven't done an installation in months. I just assumed it was after installation because all of our 8 servers had it this way.
I didn't find any chmod command in root's shell history. Maybe it was a patch or the other administrator!
I'll definetely change it to 644.
Thanks for your replies. Now I'm SURE it is not this way after installation.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 06:46 AM
08-25-2004 06:46 AM