|
|||||||||||
|
Re: Lock Account
From: Brian Hatch <secure-shell(at)ifokr.org>
Date: Fri Feb 21 2003 - 14:12:46 EST > > If you want to disable a user temporaly you can add an asterisk (*) before
However if you prepend with "-" that will disable the account on many unix variants by abusing an NIS trick. (You dictate which NIS accounts or groups to not include by using -name entries.) Try it out:
$ tail -1 /etc/passwd
$ perl -e 'while (($username)=getpwent()) { print " $username\n"; }' | grep badguy badguy
# vi /etc/passwd
$ tail -1 /etc/passwd
$ perl -e 'while (($username)=getpwent()) { print " $username\n"; }' | grep badguy $ > Depending on the password management system on your system, there are
-- Brian Hatch Ever wonder what the Systems and speed of lightning Security Engineer would be if it www.hackinglinuxexposed.com didn't zigzag? Every message PGP signed
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:54 EDT |
||||||||||
|
|||||||||||