[Samba] add user script & samba 3.0b

Thomas Angst tangst at granitsoft.ch
Fri Jun 20 09:38:32 GMT 2003


I would like to use the samba server as a replacment for NT Servers.
So I need the add user script command for adding new machines to the domain.
This is no problem in all 2.2.X versions of samba which I used.
But on version 3.0 alpha and beta it is not working.

I am using debian 3.0r1 with the unstable package of samba 3.0beta.

    workgroup = unreal
    server string = %h server (Samba %v)
    log file = /var/log/samba/log.%m
    syslog = 0
    security = user
    encrypt passwords = true
    passdb backend = smbpasswd:/etc/samba/smbpasswd
    socket options = TCP_NODELAY
    wins server =
    dns proxy = no
    admin users = root, admin, administrator
    add user script = /usr/sbin/useradd -d /dev/null -g 100 -s bin/false 
-M %u
    domain logons = yes
    domain master = yes
    logon path = \\%N\profiles\%U
    logon drive = H:
    logon home = \\%N\%U
    logon script = logon.bat

[2003/06/20 00:33:38, 0] smbd/service.c:set_admin_user(314)
   root logged in as admin user (root privileges)
[2003/06/20 00:33:39, 0] passdb/pdb_smbpasswd.c:add_smbfilepwd_entry(597)
   add_smbfilepwd_entry: cannot add account roof2$ without unix identity
[2003/06/20 00:33:39, 0] 
   could not add user/computer roof2$ to passdb.  Check permissions?

The same command line is working with 2.2.3a (Debian testing).

thanks for any answer

More information about the samba mailing list