[Samba] removing samba accounts

Dan O'Connor dan at ferrarishields.com
Fri Jul 12 20:23:53 GMT 2002

> how do you remove samba accounts from command line?

As root:

    # smbpasswd -x [username to delete]

If you just want to disable the account instead of removing it, use -d
instead of -x.

Note that this just removes the user's access to samba shares and
doesn't delete any shares themselves. Also, it only works on shares not
marked "guests ok" and if passwords are enabled.

If you want to remove the user's home directory (in /usr/home) you'll
also want to run 'rmuser' to remove the user's unix account.


More information about the samba mailing list