[Samba] usrmgr samba 3 rc1 delete user script

rruegner robowarp at gmx.de
Sun Aug 17 11:05:19 GMT 2003


Update
i finally got
add user script = /usr/sbin/useradd -m %u
to work ( it was a permisson task)
delete user script = /usr/sbin/userdel -r %u
does not work anyway
log says
rpc_server/srv_samr_nt.c:_samr_unknown_2d(4291)
  _samr_unknown_2d: Not yet implemented.
as it always did since i tested samba 3
this i the very last funktion i missed
to admin samba 3 with usrmgr.....it should work
before samba 3 goes to final...
i used win xp serv pack 1a german for testing as client
no problems here.
----- Original Message ----- 
From: "rruegner" <robowarp at gmx.de>
To: <samba at lists.samba.org>
Sent: Sunday, August 17, 2003 1:07 AM
Subject: [Samba] usrmgr samba 3 rc1


Hi all,
For my long struggle to take samba working as pdc , and do admin with usrmgr
now useradd do not longer work after the update
userdelete never worked so it is yet...are ther any ideas , is there a
signifant change to the scripts ( i dont found any in the man)?
in my oppinon this is not a real release if
add user script = /usr/sbin/useradd -m %u
        delete user script = /usr/sbin/userdel -r %u
do not work !
i checked several times my posted bug at bugzilla, but nothing seems to
happen, special to delete user script which i never saw working
if its invoked from usrmgr

now this works:
add group works
add user to group works
delete user from group works
add machine works

log says
[2003/08/17 01:02:30, 2] lib/access.c:check_access(324)
  Allowed connection from  (10.10.10.3)
[2003/08/17 01:02:30, 0] smbd/service.c:set_admin_user(314)
  root logged in as admin user (root privileges)
[2003/08/17 01:02:30, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2539)
  Returning domain sid for domain LINUX ->
S-1-5-21-3599697695-4288381433-1023231007
[2003/08/17 01:02:30, 0] rpc_server/srv_samr_nt.c:_samr_unknown_2d(4291)
  _samr_unknown_2d: Not yet implemented.



here is the tested smb.conf
system ist kernel 2.4.21 suse 8.2
with ext3 acl enabled, samba bin rpm from suses ftp server under people gd

# Global parameters
[global]
        netbios name = linux
        large readwrite = yes
        dos charset = ISO8859-15
        unix charset = CP850
        display charset = CP850
        workgroup = LINUX
        interfaces = lo, eth0
        bind interfaces only = Yes
        server schannel = Yes
        passdb backend = smbpasswd:/etc/samba/smbpasswd, guest
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *password* %n\n *password* %n\n *changed*
        username map = /etc/samba/smbusers
        unix password sync = Yes
        log level = 2
        syslog = 0
        log file = /var/log/samba/%m
        name resolve order = wins bcast hosts
        time server = Yes
        keepalive = 255
        socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=8192
SO_RCVBUF=8192
        load printers = No
        printcap name = cups
        add user script = /usr/sbin/useradd -m %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 -g machines -c Machine -d
/dev/null -s /bin/false %u
        shutdown script = /sbin/shutdown
        abort shutdown script = /sbin/shutdown -c
        logon script = login.bat
        logon path = \\linux\profiles\%u
        logon drive = Z:
        logon home = \\linux\%u
        domain logons = Yes
        os level = 255
        preferred master = Yes
        domain master = Yes
        wins proxy = Yes
        wins support = Yes
        ldap ssl = no
        add share command =
/usr/share/doc/packages/samba3/examples/misc/modify_samba_config.pl
        change share command =
/usr/share/doc/packages/samba3/examples/misc/modify_samba_config.pl
        delete share command =
/usr/share/doc/packages/samba3/examples/misc/modify_samba_config.pl
        utmp = Yes
        host msdfs = Yes
        idmap uid = 15000-20000
         hosts allow = 127., 10.10.10.
        use sendfile = Yes
        veto files = /*.eml/*.nws/riched20.dll/*.{*}/
        nt acl support = yes
        locking = No
        oplocks = No
        level2 oplocks = No
        posix locking = No
  admin users = root
 [homes]
        comment = Home Directories
        read only = No
        create mask = 0640
        directory mask = 0750
        browseable = No
        blocking locks = No
        csc policy = disable
        locking = No
        oplocks = No
        level2 oplocks = No
        posix locking = No
        strict locking = No
        share modes = No

[netlogon]
        comment = Netlogon Share
        path = /var/lib/samba/netlogon
        write list = root
        guest ok = Yes
        nt acl support = No
        browseable = No
        blocking locks = No
        csc policy = disable
        locking = No
        oplocks = No
        level2 oplocks = No
        posix locking = No
        strict locking = No
        share modes = No
[profiles]
        comment = Roaming Profile Share
        path = /var/lib/samba/profiles
        read only = No
        create mask = 0600
        directory mask = 0700
        nt acl support = no
        blocking locks = No
        csc policy = disable
        locking = No
        oplocks = No
        level2 oplocks = No
        posix locking = No
        strict locking = No
        share modes = No
        browseable = No
        profile acls = Yes


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list