[NTLUG:Discuss] deisable email
Chris Cox
cjcox at acm.org
Sun Jul 28 15:28:01 CDT 2002
Carroll E. McCarroll wrote:
> Does anyone know an easy way to disable a users email account without
> disabling their login and or Samba account?
Change the permissions on their /var/mail/<username> file.
You might even consider linking it to /dev/null.
>
> Or is their a way to disablle a regular account without disabling a Samba
> account?
You can disable a regular account by doing a password lock on it and
changing the login shell to something like /bin/false.
# passwd -l <username>
# usermod -s /bin/false <username>
This assumes that you are authenticating the user password via
a smbpasswd file or directly to a Windows password server (a
domain controller perhaps?).
More information about the Discuss
mailing list