[olug] Unix Tip: KEEP THAT USER OUT!

CM Miller cmmiller1973 at yahoo.com
Fri Dec 13 14:17:08 UTC 2002


Phil, would you recommend something like this to
disable user or group accounts on a temp. basis?

useradd or groupadd -e (date) name of user or group 

better example:   

useradd -e 12/13/02 CMMiller 

would kill my account all of 12/13/02, until manually
brought back, correct? 


--- Phil Brutsche <phil at brutsche.us> wrote:
> A long time ago, in a galaxy far, far way, someone
> said...
> 
> > This is a really poor way to temporarily keep
> non-root users off of a
> > system.  A much better way is to simply (as root)
> do (as one line):
> >
> >       echo "*** The System is temporarily
> unavailable.
> >             Please try back later. ***" >>
> /etc/nologin
> 
> Creating /etc/nologin is an all-or-nothing.  It
> doesn't help you if you
> want to temporarily prevent a certain user from
> loggin in without
> affecting anyone else.
> 
> The only 2 solutions I can think of are:
> 
> 1) Fudge with the authentication information in
> their account (change
>    their password, change password expiration time,
> etc)
> 2) The script suggested in the original email
> 
> -- 
> 
> Phil Brutsche
> phil at brutsche.us
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug


=====
*****************************************
GAIM ID:  cmmiller1973
*****************************************

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



More information about the OLUG mailing list