Remove a samba user?

Thomas -  
 thomas -
Hello everyone,
To create a samba user, just type the command:
smbadduser "username":"username", but how do you delete the samba user, smbdeluser? It's not working! It would be nice of you to help me.

3 réponses

François
 
I don't know what distro you're on, I'm on Mandrake.

To add a samba user: smbpasswd -a USER
To remove it: smbpasswd -x USER

(USER should obviously be replaced with the username!)

For more details: smbpasswd --help
4
jisisv Posted messages 3678 Status Modérateur 936
 
A little reading of "man 5 smbpasswd"
(samba 3.0.2 on Debian)
gives:
johand@horus:~$ man smbpasswd|grep -A4 '\-x'
Reformatting smbpasswd(8), please wait...
smbpasswd [-a] [-x] [-d] [-e] [-D debuglevel] [-n]
[-r <remote machine>] [-R <name resolve order>] [-m]
[-U username[%password]] [-h] [-s] [-w pass] [-i] [-L]
[username]

--
-x This option specifies that the username following should be
deleted from the local smbpasswd file.

This option is only available when running smbpasswd as root.

Johan
Under samba 2.x, check your documentation (man), I can’t remember if this option was available off the top of my head.
Johan
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.
1
thomas
 
Ok, thank you for this information. I am using Red Hat 9.0, I will check the help file to see what I can do.
0