How to block NIS logins via ssh?

Dan Mahoney, System Admin danm at prime.gushi.org
Wed Dec 10 01:44:23 PST 2008


Hello all,

I'm noticing that when following the directions given here:

http://www.freebsd.org/doc/en/books/handbook/network-nis.html

For how to disable logins, the recommended action is to set the shell to 
/sbin/nologin.

However, this is sloppy as it allows the user to log in, get the motd, do 
everything short of getting a shell.

I've tried starring out the password in the +::::::::: entry, (and putting 
in a "bad" password, like x), and those don't seem to work.  I am still 
able to connect via sshd and prove that the account works.

What's happening here?

-Dan

-- 

<Wrin> quick, somebody tell me the moon phase please?
<Dan_Wood> Wrin: Plummeting.

-Undernet #reboot, 9/11/01 (day of the WTC bombing)

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------



More information about the freebsd-questions mailing list