Re: [Samba] usrmgr: group not found.
Hello Koenraad Lelong I am not sure if the command is correct. I did a fresh gentoo insallation and used the provided smb.conf.example file. This stuff is poorly documentated! Please let me know if you get it working. Best regards. Asbjørn Morell. On 10/21/05, Koenraad Lelong [EMAIL PROTECTED] wrote: Asbjørn Morell schreef: Hello. usrmgr gives me this error, if I try to create or modify a user: The group name could not be found. I can create and modify groups with no errors!. This is my smb.conf: [global] ... addusertogroupscript = /usr/bin/gpasswd -a '%u' '%g' ... deleteuserfromgroupscript = /usr/bin/gpasswd -d '%u' '%g' ... Are those commands OK ? man gpasswd say this command is to change the group password (SuSE 9.3). I don't know (yet) what command has to be used, but thanks to this post I can finally add users (with the same error-message as you, but they are created !) and groups. So, thanks for your smb.conf, that was a big step forward for me. P.S. Shouldn't those commands (useradd, userdel, groupadd, groupdel etc.) be mentioned in the By-Example book ? Regards, Koenraad Lelong ACE electronics -- Mvh Asbjørn Morell -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] usrmgr: group not found.
) samr_reply_close_hnd: 334 [2005/10/20 12:24:38, 5] rpc_parse/parse_prs.c:prs_debug(82) 00 samr_io_r_close_hnd [2005/10/20 12:24:38, 6] rpc_parse/parse_prs.c:prs_debug(82) 00 smb_io_pol_hnd pol [2005/10/20 12:24:38, 5] rpc_parse/parse_prs.c:prs_uint32(671) data1: [2005/10/20 12:24:38, 5] rpc_parse/parse_prs.c:prs_uint32(671) 0004 data2: [2005/10/20 12:24:38, 5] rpc_parse/parse_prs.c:prs_uint16(642) 0008 data3: [2005/10/20 12:24:38, 5] rpc_parse/parse_prs.c:prs_uint16(642) Everything works fine. -- Mvh Asbjørn Morell -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] usrmgr: group not found.
Hello Michael. I don't know.. I don't have any groups that conflicts with my user names. Best regards. Asbjørn Morell. On 10/20/05, Michael Gasch [EMAIL PROTECTED] wrote: hi, is this possibly related to this [Samba] [Problem] Samba v3 Errors when group and user exists with same name ??? Asbjørn Morell wrote: Hello. usrmgr gives me this error, if I try to create or modify a user: The group name could not be found. I can create and modify groups with no errors!. This is my smb.conf: [global] addsharecommand = /etc/samba/scripts/modify_samba_config.pl netbiosname = Spider-Man deletesharecommand = /etc/samba/scripts/modify_samba_config.pl usernamemap = /etc/samba/smbusers maxlogsize = 50 addprintercommand = /etc/samba/scripts/smbaddprinter.pl addmachinescript = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M '%u' deleteuserscript = /usr/sbin/userdel -r '%s' domainlogons = yes printcapname = cups hideunreadable = yes logfile = /var/log/samba/log.%m preferredmaster = yes printing = cups socketoptions = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 delprintercommand = /etc/samba/scripts/smbdelprinter.pl addusertogroupscript = /usr/bin/gpasswd -a '%u' '%g' workgroup = Marvel useclientdriver = no security = user smbpasswdfile = /etc/samba/private/smbpasswd domainmaster = yes addgroupscript = /usr/sbin/groupadd %g getent group '%g'|awk -F: '{print $3}' deleteuserfromgroupscript = /usr/bin/gpasswd -d '%u' '%g' loglevel = 5 adduserscript = /usr/sbin/useradd -m -s /bin/false '%u' dnsproxy = no hidedotfiles = yes setprimarygroupscript = /usr/sbin/usermod -g '%g' '%u' deletegroupscript = /usr/sbin/groupdel '%g' loadprinters = yes cupsoptions = raw nullpasswords = no logonpath = \\%L\Profiles\%U file://%25L/Profiles/%25U changesharecommand = /etc/samba/scripts/modify_samba_config.pl serverstring = Samba Server %v encryptpasswords = yes ## Section - [printers] [printers] createmode = 0700 browseable = no printable = yes writable = no path = /var/spool/samba guestok = no comment = All Printers printcommand = lpr-cups -P %p -o raw %s -r # using client side printer drivers. ## Section - [Profiles] [Profiles] rootpreexec = PROFILE=/var/lib/samba/profiles/%u; if [ ! -e $PROFILE ]; \ browseable = no writable = yes path = /home/profiles guestok = yes ## Section - [das] [das] comment = das path = /tmp ## Section - [print$] [print$] readonly = yes browseable = yes path = /var/lib/samba/printers guestok = no writelist = @adm root ## Section - [homes] [homes] browseable = no comment = Home Directories writable = yes # # end of generated smb.conf # I am logged in as root in the domain. This is the log.client error: [2005/10/20 12:24:38, 6] smbd/process.c:process_smb(1113) got message type 0x0 of len 0x88 [2005/10/20 12:24:38, 3] smbd/process.c:process_smb(1114) Transaction 422 of length 140 [2005/10/20 12:24:38, 5] lib/util.c:show_msg(454) [2005/10/20 12:24:38, 5] lib/util.c:show_msg(464) size=136 smb_com=0x25 smb_rcls=0 smb_reh=0 smb_err=0 smb_flg=24 smb_flg2=51207 smb_tid=2 smb_pid=928 smb_uid=101 smb_mid=6656 smt_wct=16 smb_vwv[ 0]= 0 (0x0) smb_vwv[ 1]= 52 (0x34) smb_vwv[ 2]= 0 (0x0) smb_vwv[ 3]= 1024 (0x400) smb_vwv[ 4]= 0 (0x0) smb_vwv[ 5]= 0 (0x0) smb_vwv[ 6]= 0 (0x0) smb_vwv[ 7]= 0 (0x0) smb_vwv[ 8]= 0 (0x0) smb_vwv[ 9]= 0 (0x0) smb_vwv[10]= 84 (0x54) smb_vwv[11]= 52 (0x34) smb_vwv[12]= 84 (0x54) smb_vwv[13]= 2 (0x2) smb_vwv[14]= 38 (0x26) smb_vwv[15]=30312 (0x7668) smb_bcc=69 [2005/10/20 12:24:38, 3] smbd/process.c:switch_message(900) switch message SMBtrans (pid 6588) conn 0x80360f00 [2005/10/20 12:24:38, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2005/10/20 12:24:38, 5] auth/auth_util.c:debug_nt_user_token(457) NT user token of user S-1-5-21-3000185186-390968-328561933-1000 contains 15 SIDs SID[ 0]: S-1-5-21-3000185186-390968-328561933-1000 SID[ 1]: S-1-5-21-3000185186-390968-328561933-1001 SID[ 2]: S-1-1-0 SID[ 3]: S-1-5-2 SID[ 4]: S-1-5-11 SID[ 5]: S-1-5-21-3000185186-390968-328561933-1003 SID[ 6]: S-1-5-21-3000185186-390968-328561933-1005 SID[ 7]: S-1-5-21-3000185186-390968-328561933-1007 SID[ 8]: S-1-5-21-3000185186-390968-328561933-1009 SID[ 9]: S-1-5-21-3000185186-390968-328561933-1013 SID[ 10]: S-1-5-21-3000185186-390968-328561933-1021 SID[ 11]: S-1-5-21-3000185186-390968-328561933-1023 SID[ 12]: S-1-5-21-3000185186-390968-328561933-1041 SID[ 13]: S-1-5-21-3000185186-390968-328561933-1053 SID[ 14]: S-1-5-21-3000185186-390968-328561933-1055 SE_PRIV 0x0 0x0 0x0 0x0 [2005/10/20 12:24:38, 5] auth/auth_util.c:debug_unix_user_token(473) UNIX token of user 0 Primary group is 0
Re: [Samba] usrmgr: group not found.
I don't have a Users or Administrators group.. username map is not used. cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/false daemon:x:2:2:daemon:/sbin:/bin/false adm:x:3:4:adm:/var/adm:/bin/false lp:x:4:7:lp:/var/spool/lpd:/bin/false sync:x:5:0:sync:/sbin:/bin/sync shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown halt:x:7:0:halt:/sbin:/sbin/halt mail:x:8:12:mail:/var/spool/mail:/bin/false news:x:9:13:news:/usr/lib/news:/bin/false uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false operator:x:11:0:operator:/root:/bin/bash man:x:13:15:man:/usr/share/man:/bin/false postmaster:x:14:12:postmaster:/var/spool/mail:/bin/false cron:x:16:16:cron:/var/spool/cron:/bin/false ftp:x:21:21::/home/ftp:/bin/false sshd:x:22:22:sshd:/dev/null:/bin/false at:x:25:25:at:/var/spool/cron/atjobs:/bin/false squid:x:31:31:Squid:/var/cache/squid:/bin/false gdm:x:32:32:GDM:/var/lib/gdm:/bin/false xfs:x:33:33:X Font Server:/etc/X11/fs:/bin/false games:x:35:35:games:/usr/games:/bin/false named:x:40:40:bind:/var/bind:/bin/false mysql:x:60:60:mysql:/var/lib/mysql:/bin/false postgres:x:70:70::/var/lib/postgresql:/bin/bash nut:x:84:84:nut:/var/state/nut:/bin/false cyrus:x:85:12::/usr/cyrus:/bin/false vpopmail:x:89:89::/var/vpopmail:/bin/false alias:x:200:200::/var/qmail/alias:/bin/false qmaild:x:201:200::/var/qmail:/bin/false qmaill:x:202:200::/var/qmail:/bin/false qmailp:x:203:200::/var/qmail:/bin/false qmailq:x:204:201::/var/qmail:/bin/false qmailr:x:205:201::/var/qmail:/bin/false qmails:x:206:201::/var/qmail:/bin/false postfix:x:207:207:postfix:/var/spool/postfix:/bin/false smmsp:x:209:209:smmsp:/var /spool/mqueue:/bin/false portage:x:250:250:portage:/var/tmp/portage:/bin/false nobody:x:65534:65534:nobody:/:/bin/false dhcp:x:101:407:added by portage for dhcp:/var/lib/dhcp:/bin/false atm:x:1000:100::/home/atm:/bin/bash winxp$:x:1001:408:Machine Account:/dev/null:/bin/false cat /etc/group root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon sys:x:3:root,bin,adm adm:x:4:root,adm,daemon tty:x:5: disk:x:6:root,adm lp:x:7:lp mem:x:8: kmem:x:9: wheel:x:10:root floppy:x:11:root mail:x:12:mail news:x:13:news uucp:x:14:uucp man:x:15:man cron:x:16:cron console:x:17: audio:x:18: cdrom:x:19: dialout:x:20:root ftp:x:21: sshd:x:22: at:x:25:at tape:x:26:root video:x:27:root squid:x:31:squid gdm:x:32:gdm xfs:x:33:xfs games:x:35: named:x:40:named mysql:x:60: postgres:x:70: cdrw:x:80: nut:x:84: usb:x:85: vpopmail:x:89: users:x:100:games nofiles:x:200: qmail:x:201: postfix:x:207: postdrop:x:208: smmsp:x:209:smmsp slocate:x:245: portage:x:250:portage utmp:x:406: nogroup:x:65533: nobody:x:65534: dhcp:x:407: machines:x:408: it:x:409: Best regards. Asbjørn Morell -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba