Disable a User's email account

Albert Graham agraham at g-b.net
Sun Feb 11 19:16:46 UTC 2007


I find it's nice to continue to receive email for someone, even while 
the account is disabled, to do this simply:

Lock Account
usermod -L $username

Unlock Account
usermod -U $username

man usemode for more info.

PS. this prevents all logins including ftp (it prefixes to password 
entry with !)

Albert.


edwardspl at ita.org.mo wrote:
> Les Mikesell wrote:
>> edwardspl at ita.org.mo wrote:
>>> Dear All,
>>>
>>> The System is FC6...
>>> So, how to disbale a User's mail service ?
>>> eg : Sendmail + Dovecot ( pop3 /imap ).
>>>
>>
>> One way is to use the aliases file to direct the mail elsewhere or to 
>> /dev/null.  Another is to use the virtuser table to map the users you 
>> want to permit to real addresses with a catchall rejection.
>>
>> Maybe it would be easier to describe exactly what you want these 
>> users to be able to do first and build an environment that provides 
>> nothing else instead of starting with a general-purpose login and 
>> trying to stop everything you don't want them to do.
>>
> Hello,
>
> Is there a sample ( steps by steps ) for reference ?
>
> Edward.




More information about the users mailing list