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 _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list