On Tue, 2004-05-04 at 14:02, Aseem Asthana wrote:
> * mr_bksharma <[EMAIL PROTECTED]> [2004-05-04 10:57 PST]:
> > Which configuration file contains the flag/setting to enable/disable any 
> > a/c permanently?
> 
> just set the shell in /etc/passwd to be /bin/true or /bin/false and the
> user will not be able to login.

Denying a login shell != disabling an account. The user would still be
able to auth with any of the services on the machine.

I usually prepend "!!" in the password field in /etc/shadow

another one, an excerpt from man passwd -

--------------
-l     This  option  is  used  to  lock the specified account and it is
       available to root only. The locking is  performed  by  rendering
       the  encrypted password into an invalid string (by prefixing the
       encrypted string with an !).
--------------

use as 

# passwd <username> -l

-- 
VaibhaV
http://vsharma.net




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to