On Mon, Jul 15, 2002 at 04:22:45PM -0400, R P Herrold wrote: > On Mon, 15 Jul 2002, Jay Daniels wrote: > > > On Mon, Jul 15, 2002 at 06:22:03PM -0100, Juan L Pastor wrote: > > > Hi, > > > > > > On Mon, 2002-07-15 at 09:13, Muthupandi wrote: > > > > Hi all, > > > > Can u any body teach me how to disable a useraccount in redhat linux6.1 . I >used the 'userconf' command to disable(uncheck the check box of the account is >enabled). But it is changing only the password of that user. but he receives mails. >I want to restrict the mails for that user. how to do ? > > > > > > Delete his encrypted password field in the /etc/passwd file. > > Ummm, no. --- How about using the Unix tools for the job, > which are kind to race conditions: > > passwd -l userid > > and then disable ssh key based login as well: > > [ -e ~userid/.ssh ] && mv ~userid/.ssh ~userid/_.ssh > > ------------ > > Remember to clean out the crontab and the at table for > userid as well. > > -- Russ Herrold >
Well, you clipped my response. So, what has ssh login got to do with him being able to receive mail? I thought he meant the user was still able to access his email account via pop3, imap etc? As far as I know, redhat 6.1 has shadowed passwords and if you remove that encrypted string in /etc/shadow he can login without a password!!! I'm going to stop snarfing these long sigs. If everyone would put "-- " before your sigs then the mailer would snip the junk when replying. jay -- Your login is not in the sudoers file. This incident will be reported!
msg83569/pgp00000.pgp
Description: PGP signature