How to block NIS logins via ssh?

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

Hello all,

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

For how to disable logins, the recommended action is to set the shell to 

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?



<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

More information about the freebsd-questions mailing list