[Samba] USRMGR Adding Users

Mark Dehus mdehus at microfury.com
Tue Sep 30 02:40:57 GMT 2003

I am having troubles getting the user manager to add users. It gives me 
an incorrect parameter. I am using samba 3.0 final. I am also using the 
tdbsam backend. I noticed in pdbedit it does not have the [u      ] 
under account flags. It adds the user, but it does not show up in the 
user manager for domains (but it gets put inside of the pwdb and 
/etc/passwd) here is my config.

        log file = /var/log/samba/log.%m
        load printers = yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        logon drive = H:
        domain master = yes
        username map = /etc/samba/smbusers
        encrypt passwords = yes
        hosts allow = 127. 172.16.
        passdb backend = tdbsam
        logon home = \\sentinel\%U
        wins support = yes
        dns proxy = no
        server string = ECS PDC Samba Server
        logon script = %U.bat
        local master = yes
        workgroup = ECS
        logon path =
        os level = 33
        printcap name = /etc/printcap
        security = user
        preferred master = yes
        passwd program = /usr/bin/passwd %u
        add user script = /usr/sbin/useradd -m -g domuser %u
        delete user script = /usr/sbin/userdel -r %u
        add group script = /usr/sbin/groupadd -r %g
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/bin/gpasswd -a %u %g
        delete user from group script = /usr/bin/gpasswd -d %u %g
        set primary group script = /usr/sbin/usermod -g '%g' '%u'
        add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s 
/bin/false -M %u
        max log size = 50
        domain logons = yes

More information about the samba mailing list