3 réponses
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
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
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.
(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.