Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/hosts permissions 1

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
How should the /etc/hosts permissions be set?

775? 665? 440???

 
Why would you ever have execute permissions on a file that is only read?

It is 660.
 
And why would you want to break gethostbyname() and its family for everyone but root and the system group?

664





Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
I was going to add, 664 may be better. Thanks, Rod. And use root:system.
 
Although, the Defense Information Systems Agency (DISA) Field Security Operations Unix Security Checklist doesn't specifically list /etc/hosts permission requirements.
 
DISA also doesn't have list specifications of any kind for /etc/nsswitch.conf or /etc/netsvc.conf.

I guess client side spoofing just isn't a concern to them.



Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Why have execute for /etc/hosts? Don't know ask IBM. It's default with a fresh image.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top