On Mon, Sep 13, 2004 at 09:55:16AM +0800, Ow Mun Heng wrote: > On Thu, 2004-09-09 at 22:57, David Jansen wrote: > > Solved, sort of. It turns out that smbpasswd when run as root does not > > run the script, but when a user runs smbpasswd, the script is executed. > > Workaround for root: 'smbpasswd -r localhost username > > This is good info, but I can't figure out why smbpasswd doesn't want to > run as root. > > How do you add a new user then? > I don't use ldap as a backend, and I have to use smbpasswd -a newuser The users get added through LDAP (commandline or web interface). I used smbpasswd only for setting the passwords. So basically, I don't know why smbpasswd behaves so different when run as root, and how one is supposed to run it. Would like to find out though... David