Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Focus-Sun
[Top] [All Lists]

Re: Security Configuration Settings?

Subject: Re: Security Configuration Settings?
Date: Thu, 23 Sep 2004 13:59:56 +0800
El C0chin0 wrote:

On the above mentioned page under "Access Controls" section 4 'Only add 
accounts for users who require access to the system. If using NIS, use the compat mode by 
editing the /etc/nsswitch.conf file:

passwd: compat'

I don't understand and haven't been able to find anything related to what describes 'compat'. Can any one provide me with why it is a good measure to change this from 'files' to 'compat' and what other changes may be necessary or what exactly is the difference?



The compat keyword means that the passwd file emulates that behavior in SunOS 4.x where you could use NIS as your nameservice, but list in your /etc/passwd file which users and netgroups are included or excluded via lines starting with + or -. Normally when using NIS, anyone in the name service can log into the system. This is not a good idea when you want to restrict access to only a small set of people.


The usual alternative is to not use NIS and manually add in the users you want. This has some management issues such as user ids and passwords not being consistent, and makes it harder to ensure you remove someone's access completely if their employment ends. With compat mode you can create a netgroup of users in NIS and just include that netgroup with one line in your passwd file, or you can add or bar people by username so that their NIS entry is used and a separate passwd entry is not needed, and they lose access once they are removed from NIS.

For more information:

man -s 4 nsswitch.conf
man -s 4 passwd

--
James Lick -- éåæ -- jlick@jameslick.com -- http://jameslick.com/

<Prev in Thread] Current Thread [Next in Thread>