Re: [Samba] "net sam provision" and samba 3.4.0
thank you ! But what's "net idmap secret alloc " ? Is it different from "smbpasswd -w" ? "man net" says : Store a secret for the specified domain, used primarily for domains that use idmap_ldap as a backend. In this case the secret is used as the password for the user DN used to bind to the ldap server. hmmm... > -Ursprüngliche Nachricht- > Von: David Markey [mailto:dmar...@dodds.dmarkey.com] > Gesendet: Montag, 7. September 2009 00:53 > An: Zeller, Jan > Cc: samba@lists.samba.org > Betreff: Re: [Samba] "net sam provision" and samba 3.4.0 > > > These are the settings i use: > [global] > workgroup = TESTDOM > encrypt passwords = true > passdb backend = ldapsam:ldapi:/// > domain logons = yes > ldapsam:trusted=yes > ldapsam:editposix=yes > restrict anonymous = 0 > log level = 10 > log file = /var/log/samba > ldap admin dn = cn=admin,dc=samba,dc=org > ldap delete dn = yes > ldap passwd sync = yes > ldap group suffix = ou=groups > ldap machine suffix = ou=computers > ldap user suffix = ou=users > ldap suffix = dc=samba,dc=org > ldap ssl = off > logon path = > template homedir = /home/%U > template shell = /bin/bash > idmap backend = ldap:ldapi:/// > idmap uid = 100-199 > idmap gid = 100-199 > idmap alloc backend = ldap > idmap alloc config : ldap_url = ldapi:/// > idmap alloc config : ldap_base_dn = ou=idmap,dc=samba,dc=org > idmap alloc config : ldap_user_dn = cn=admin,dc=samba,dc=org > > > Don't forget net idmap secret alloc "password" -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HELP: Samba server crashing on me
Well, the solution was as simple as this: bool dns_register_smbd_reply(struct dns_reg_state *dns_state, fd_set *lfds, struct timeval *timeout) { int mdnsd_conn_fd = -1; +if (!dns_state) return false; if (dns_state->srv_ref == NULL) { return false; } -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HELP: Samba server crashing on me
> > Please file a bug report on https://bugzilla.samba.org - attach all the > info you presented on this list, and also the output of "testparm -s". > > Suggest you also include the output of "smbd -b" and of "uname -a". Sure thing. > > What is your platform? Did you compile Samba yourself or is this from a > recognized packaged source? Both. I'm using Gentoo. > > Would like to understand why you have this problem and noone else has > reported this problem. Me too. :) -- Timothy Normand Miller http://www.cse.ohio-state.edu/~millerti Open Graphics Project -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HELP: Samba server crashing on me
On 09/06/2009 10:47 PM, Timothy Normand Miller wrote: > I'm stymied by the fact that no matter what I set the CFLAGS to in the > environment, the compile is optimizing out symbols, but here's what > I'm finding in the source: > > static bool open_sockets_smbd(bool is_daemon, bool interactive, const > char *smb_ports) > { > ... > struct dns_reg_state * dns_reg = NULL; > > ... nothing that modifies dns_reg ... > > /* process pending nDNS responses */ > if (dns_register_smbd_reply(dns_reg, &r_fds, &idle_timeout)) { > --num; > } > ... > } > > > Then the function dns_register_smbd_reply blindly rereferences the > first argument: > > bool dns_register_smbd_reply(struct dns_reg_state *dns_state, > fd_set *lfds, struct timeval *timeout) > { > int mdnsd_conn_fd = -1; > > if (dns_state->srv_ref == NULL) { > return false; > } > ... > } > > So, can anyone tell me what I might do to avoid this sequence of > events? It didn't happen before. I don't know what's causing it to > happen now. > > > On Sun, Sep 6, 2009 at 11:26 PM, Timothy Normand > Miller wrote: >> This is where smbd is getting signal 11 (see the ***): >> >> /* Processes reply from mDNS daemon. Returns true if a reply was received */ >> bool dns_register_smbd_reply(struct dns_reg_state *dns_state, >>fd_set *lfds, struct timeval *timeout) >> { >>int mdnsd_conn_fd = -1; >> >>if (dns_state->srv_ref == NULL) { // *** RIGHT HERE AT LINE 171 *** >>return false; >>} >> >>mdnsd_conn_fd = DNSServiceRefSockFD(dns_state->srv_ref); >> >>/* Process reply from daemon. Handles any errors. */ >>if ((mdnsd_conn_fd != -1) && (FD_ISSET(mdnsd_conn_fd,lfds)) ) { >>DNSServiceErrorType err; >> >>err = DNSServiceProcessResult(dns_state->srv_ref); >>if (err != kDNSServiceErr_NoError) { >>DEBUG(3, ("failed to process mDNS result (err >> %d), re-trying\n", >>err)); >>schedule_dns_register_smbd_retry(dns_state, timeout); >>} >> >>return true; >>} >> >>return false; >> } >> >> >> It appears that dns_state is null, which is evident from the stack trace: >> >> #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x7fffbf342960, >> timeout=0x7fffbf342af0) at smbd/dnsregister.c:171 >> >> That's called from here in server.c, in main(): >> >>if (dns_register_smbd_reply(dns_reg, &r_fds, &idle_timeout)) { >>--num; >>} >> >> Unfortunately, I can't debug further since dns_reg is optimized out by -O2. >> > > > Please file a bug report on https://bugzilla.samba.org - attach all the info you presented on this list, and also the output of "testparm -s". Suggest you also include the output of "smbd -b" and of "uname -a". What is your platform? Did you compile Samba yourself or is this from a recognized packaged source? Would like to understand why you have this problem and noone else has reported this problem. Cheers, John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HELP: Samba server crashing on me
I'm stymied by the fact that no matter what I set the CFLAGS to in the environment, the compile is optimizing out symbols, but here's what I'm finding in the source: static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ports) { ... struct dns_reg_state * dns_reg = NULL; ... nothing that modifies dns_reg ... /* process pending nDNS responses */ if (dns_register_smbd_reply(dns_reg, &r_fds, &idle_timeout)) { --num; } ... } Then the function dns_register_smbd_reply blindly rereferences the first argument: bool dns_register_smbd_reply(struct dns_reg_state *dns_state, fd_set *lfds, struct timeval *timeout) { int mdnsd_conn_fd = -1; if (dns_state->srv_ref == NULL) { return false; } ... } So, can anyone tell me what I might do to avoid this sequence of events? It didn't happen before. I don't know what's causing it to happen now. On Sun, Sep 6, 2009 at 11:26 PM, Timothy Normand Miller wrote: > This is where smbd is getting signal 11 (see the ***): > > /* Processes reply from mDNS daemon. Returns true if a reply was received */ > bool dns_register_smbd_reply(struct dns_reg_state *dns_state, > fd_set *lfds, struct timeval *timeout) > { > int mdnsd_conn_fd = -1; > > if (dns_state->srv_ref == NULL) { // *** RIGHT HERE AT LINE 171 *** > return false; > } > > mdnsd_conn_fd = DNSServiceRefSockFD(dns_state->srv_ref); > > /* Process reply from daemon. Handles any errors. */ > if ((mdnsd_conn_fd != -1) && (FD_ISSET(mdnsd_conn_fd,lfds)) ) { > DNSServiceErrorType err; > > err = DNSServiceProcessResult(dns_state->srv_ref); > if (err != kDNSServiceErr_NoError) { > DEBUG(3, ("failed to process mDNS result (err > %d), re-trying\n", > err)); > schedule_dns_register_smbd_retry(dns_state, timeout); > } > > return true; > } > > return false; > } > > > It appears that dns_state is null, which is evident from the stack trace: > > #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x7fffbf342960, > timeout=0x7fffbf342af0) at smbd/dnsregister.c:171 > > That's called from here in server.c, in main(): > > if (dns_register_smbd_reply(dns_reg, &r_fds, &idle_timeout)) { > --num; > } > > Unfortunately, I can't debug further since dns_reg is optimized out by -O2. > -- Timothy Normand Miller http://www.cse.ohio-state.edu/~millerti Open Graphics Project -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] net rpc rights grant: NT_STATUS_ACCESS_DENIED
>>> RE: "net rpc rights grant testpc1 SePrintOperatorPrivilege -U testpc1" >>> Failed to grant privileges for testpc1 (NT_STATUS_ACCESS_DENIED) >>> >>> samba_source_3.3.7 on redhat 5 64bit. I have root on the samba >>> server but I don't have admin access to active directory (hence the >>> auth using testpc1). So you have full access to Samba, but - I'm guessing - read only access to AD? >>> Does the user granting access need some sort of admin privilege in >>> Active Directory? How do I grant this privilege on this samba host >>> (for which I have root) since I don't have admin access in Active >>> Directory? Yes, if you want to change an object in Active Directory you will need access to do so. Unless your Samba host *is* the AD server, nothing gets granted on the PC itself, all the permissions are maintained within AD. You could either get the testpc1 account more access, or ask whoever maintains your AD installation for delegated access so you can grant and revoke permissions from objects you maintain (using -U your_username instead.) Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HELP: Samba server crashing on me
This is where smbd is getting signal 11 (see the ***): /* Processes reply from mDNS daemon. Returns true if a reply was received */ bool dns_register_smbd_reply(struct dns_reg_state *dns_state, fd_set *lfds, struct timeval *timeout) { int mdnsd_conn_fd = -1; if (dns_state->srv_ref == NULL) { // *** RIGHT HERE AT LINE 171 *** return false; } mdnsd_conn_fd = DNSServiceRefSockFD(dns_state->srv_ref); /* Process reply from daemon. Handles any errors. */ if ((mdnsd_conn_fd != -1) && (FD_ISSET(mdnsd_conn_fd,lfds)) ) { DNSServiceErrorType err; err = DNSServiceProcessResult(dns_state->srv_ref); if (err != kDNSServiceErr_NoError) { DEBUG(3, ("failed to process mDNS result (err %d), re-trying\n", err)); schedule_dns_register_smbd_retry(dns_state, timeout); } return true; } return false; } It appears that dns_state is null, which is evident from the stack trace: #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x7fffbf342960, timeout=0x7fffbf342af0) at smbd/dnsregister.c:171 That's called from here in server.c, in main(): if (dns_register_smbd_reply(dns_reg, &r_fds, &idle_timeout)) { --num; } Unfortunately, I can't debug further since dns_reg is optimized out by -O2. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] HELP: Samba server crashing on me
On Sun, Sep 6, 2009 at 11:17 PM, John H Terpstra - Samba Team wrote: > On 09/06/2009 10:12 PM, Timothy Normand Miller wrote: >> On Sun, Sep 6, 2009 at 10:54 PM, Jobst Schmalenbach >> wrote: >>> >>> This is ONLY a guess: >>> >>> * signal 11 means invalid memory reference, so I would check your RAM >>> and even your harddisks, it could be a page fault. >>> (find some other ram, put them in and run it for a while). >> >> This problem is new and 100% reproducable. I've tried rebooting, >> which should fix any intermittent problem. Also the RAM is from >> Crucial, and I'm not doing any overclocking of any kind. Everything >> else is 100% stable, except for samba, which crashes. >> >> Turns out that it doesn't crash until a client tries to connect. >> >>> >>> * may, just maybe your problems from earlier "Unable to connect to CUPS >>> server" >>> have had too many pointer allocations/references that the next one in the >>> chain crashed the server, fix this and check again. >> >> That's the first thing I fixed. Didn't help. Any other ideas? >> >> Apparently, the crash is here: >> #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, timeout=0x74964060) at smbd/dnsregister.c:171 >> >> I'm going to pull the source and see what's there. > > Did you by any chance update glibc before this problem started to occur? A few weeks ago. I'm pretty sure I've rebooted once since then, so I don't think that's the problem. > > Samba is a user-space application. If your whole system crashed this > suggests a symptomatic problem with either the hardware (memory or > motherboard) or else corrupt binaries (either kernel or system libraries). No. Only smbd is crashing. Everything else is fine. > > - John T. > >>> >>> this is what I would do first. >>> Jobst >>> >>> >>> >>> On Sun, Sep 06, 2009 at 10:44:01PM -0400, Timothy Normand Miller >>> (theo...@gmail.com) wrote: For no reason that I can discover, my smb server has started crashing on me. I'm really hoping someone help me out with this. This is the relevant portion of the log: [2009/09/06 22:24:44, 0] smbd/server.c:main(1274) smbd version 3.3.7 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:26:09, 0] smbd/server.c:main(1274) smbd version 3.3.7 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(40) === [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 11 in pid 16066 (3.3.7) Please read the Trouble-Shooting section of the Samba3-HOWTO [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(43) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(44) === [2009/09/06 22:26:43, 0] lib/util.c:smb_panic(1673) PANIC (pid 16066): internal error [2009/09/06 22:26:43, 0] lib/util.c:log_stack_trace(1777) BACKTRACE: 8 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f4fdfff6b10] #1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f4fdfff6c1d] #2 /usr/sbin/smbd [0x7f4fdffe3e71] #3 /lib/libpthread.so.0 [0x7f4fde09bef0] #4 /usr/sbin/smbd(dns_register_smbd_reply+0x1c) [0x7f4fdfe59e3b] #5 /usr/sbin/smbd(main+0x16e8) [0x7f4fe01f05cc] #6 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4fdca49a26] #7 /usr/sbin/smbd [0x7f4fdfde1339] [2009/09/06 22:26:43, 0] lib/fault.c:dump_core(231) dumping core in /var/log/samba/cores/smbd I don't get much out of gdb: #0 0x7f4fdca5d645 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) where #0 0x7f4fdca5d645 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x7f4fdca5eb63 in abort () at abort.c:88 #2 0x7f4fdffe38db in dump_core () at lib/fault.c:242 #3 0x7f4fdfff6d3b in smb_panic (why=) at l
Re: [Samba] HELP: Samba server crashing on me
On 09/06/2009 10:12 PM, Timothy Normand Miller wrote: > On Sun, Sep 6, 2009 at 10:54 PM, Jobst Schmalenbach > wrote: >> >> This is ONLY a guess: >> >> * signal 11 means invalid memory reference, so I would check your RAM >> and even your harddisks, it could be a page fault. >> (find some other ram, put them in and run it for a while). > > This problem is new and 100% reproducable. I've tried rebooting, > which should fix any intermittent problem. Also the RAM is from > Crucial, and I'm not doing any overclocking of any kind. Everything > else is 100% stable, except for samba, which crashes. > > Turns out that it doesn't crash until a client tries to connect. > >> >> * may, just maybe your problems from earlier "Unable to connect to CUPS >> server" >> have had too many pointer allocations/references that the next one in the >> chain crashed the server, fix this and check again. > > That's the first thing I fixed. Didn't help. Any other ideas? > > Apparently, the crash is here: > >>> #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, >>> timeout=0x74964060) at smbd/dnsregister.c:171 > > I'm going to pull the source and see what's there. Did you by any chance update glibc before this problem started to occur? Samba is a user-space application. If your whole system crashed this suggests a symptomatic problem with either the hardware (memory or motherboard) or else corrupt binaries (either kernel or system libraries). - John T. >> >> this is what I would do first. >> Jobst >> >> >> >> On Sun, Sep 06, 2009 at 10:44:01PM -0400, Timothy Normand Miller >> (theo...@gmail.com) wrote: >>> For no reason that I can discover, my smb server has started crashing >>> on me. I'm really hoping someone help me out with this. This is the >>> relevant portion of the log: >>> >>> [2009/09/06 22:24:44, 0] smbd/server.c:main(1274) >>> smbd version 3.3.7 started. >>> Copyright Andrew Tridgell and the Samba Team 1992-2009 >>> [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) >>> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >>> such file or directory >>> [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) >>> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >>> such file or directory >>> [2009/09/06 22:26:09, 0] smbd/server.c:main(1274) >>> smbd version 3.3.7 started. >>> Copyright Andrew Tridgell and the Samba Team 1992-2009 >>> [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) >>> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >>> such file or directory >>> [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) >>> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >>> such file or directory >>> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(40) >>> === >>> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(41) >>> INTERNAL ERROR: Signal 11 in pid 16066 (3.3.7) >>> Please read the Trouble-Shooting section of the Samba3-HOWTO >>> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(43) >>> >>> From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf >>> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(44) >>> === >>> [2009/09/06 22:26:43, 0] lib/util.c:smb_panic(1673) >>> PANIC (pid 16066): internal error >>> [2009/09/06 22:26:43, 0] lib/util.c:log_stack_trace(1777) >>> BACKTRACE: 8 stack frames: >>>#0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f4fdfff6b10] >>>#1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f4fdfff6c1d] >>>#2 /usr/sbin/smbd [0x7f4fdffe3e71] >>>#3 /lib/libpthread.so.0 [0x7f4fde09bef0] >>>#4 /usr/sbin/smbd(dns_register_smbd_reply+0x1c) [0x7f4fdfe59e3b] >>>#5 /usr/sbin/smbd(main+0x16e8) [0x7f4fe01f05cc] >>>#6 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4fdca49a26] >>>#7 /usr/sbin/smbd [0x7f4fdfde1339] >>> [2009/09/06 22:26:43, 0] lib/fault.c:dump_core(231) >>> dumping core in /var/log/samba/cores/smbd >>> >>> I don't get much out of gdb: >>> >>> #0 0x7f4fdca5d645 in raise (sig=) at >>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>> 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. >>> in ../nptl/sysdeps/unix/sysv/linux/raise.c >>> (gdb) where >>> #0 0x7f4fdca5d645 in raise (sig=) at >>> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >>> #1 0x7f4fdca5eb63 in abort () at abort.c:88 >>> #2 0x7f4fdffe38db in dump_core () at lib/fault.c:242 >>> #3 0x7f4fdfff6d3b in smb_panic (why=) at >>> lib/util.c:1689 >>> #4 0x7f4fdffe3e71 in sig_fault (sig=11) at lib/fault.c:46 >>> #5 >>> #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, >>> timeout=0x74964060) at smbd/dnsregister.c:171 >>> #7 0x7f4fe01f05cc in main (argc=, >>> argv=) at smbd/server.c:689 >>> >>> >>> Other things: >>> >>> - I did try s
Re: [Samba] HELP: Samba server crashing on me
On Sun, Sep 6, 2009 at 10:54 PM, Jobst Schmalenbach wrote: > > This is ONLY a guess: > > * signal 11 means invalid memory reference, so I would check your RAM > and even your harddisks, it could be a page fault. > (find some other ram, put them in and run it for a while). This problem is new and 100% reproducable. I've tried rebooting, which should fix any intermittent problem. Also the RAM is from Crucial, and I'm not doing any overclocking of any kind. Everything else is 100% stable, except for samba, which crashes. Turns out that it doesn't crash until a client tries to connect. > > * may, just maybe your problems from earlier "Unable to connect to CUPS > server" > have had too many pointer allocations/references that the next one in the > chain crashed the server, fix this and check again. That's the first thing I fixed. Didn't help. Any other ideas? Apparently, the crash is here: >> #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, >> timeout=0x74964060) at smbd/dnsregister.c:171 I'm going to pull the source and see what's there. > > this is what I would do first. > Jobst > > > > On Sun, Sep 06, 2009 at 10:44:01PM -0400, Timothy Normand Miller > (theo...@gmail.com) wrote: >> For no reason that I can discover, my smb server has started crashing >> on me. I'm really hoping someone help me out with this. This is the >> relevant portion of the log: >> >> [2009/09/06 22:24:44, 0] smbd/server.c:main(1274) >> smbd version 3.3.7 started. >> Copyright Andrew Tridgell and the Samba Team 1992-2009 >> [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) >> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >> such file or directory >> [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) >> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >> such file or directory >> [2009/09/06 22:26:09, 0] smbd/server.c:main(1274) >> smbd version 3.3.7 started. >> Copyright Andrew Tridgell and the Samba Team 1992-2009 >> [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) >> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >> such file or directory >> [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) >> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No >> such file or directory >> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(40) >> === >> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(41) >> INTERNAL ERROR: Signal 11 in pid 16066 (3.3.7) >> Please read the Trouble-Shooting section of the Samba3-HOWTO >> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(43) >> >> From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf >> [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(44) >> === >> [2009/09/06 22:26:43, 0] lib/util.c:smb_panic(1673) >> PANIC (pid 16066): internal error >> [2009/09/06 22:26:43, 0] lib/util.c:log_stack_trace(1777) >> BACKTRACE: 8 stack frames: >> #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f4fdfff6b10] >> #1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f4fdfff6c1d] >> #2 /usr/sbin/smbd [0x7f4fdffe3e71] >> #3 /lib/libpthread.so.0 [0x7f4fde09bef0] >> #4 /usr/sbin/smbd(dns_register_smbd_reply+0x1c) [0x7f4fdfe59e3b] >> #5 /usr/sbin/smbd(main+0x16e8) [0x7f4fe01f05cc] >> #6 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4fdca49a26] >> #7 /usr/sbin/smbd [0x7f4fdfde1339] >> [2009/09/06 22:26:43, 0] lib/fault.c:dump_core(231) >> dumping core in /var/log/samba/cores/smbd >> >> I don't get much out of gdb: >> >> #0 0x7f4fdca5d645 in raise (sig=) at >> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. >> in ../nptl/sysdeps/unix/sysv/linux/raise.c >> (gdb) where >> #0 0x7f4fdca5d645 in raise (sig=) at >> ../nptl/sysdeps/unix/sysv/linux/raise.c:64 >> #1 0x7f4fdca5eb63 in abort () at abort.c:88 >> #2 0x7f4fdffe38db in dump_core () at lib/fault.c:242 >> #3 0x7f4fdfff6d3b in smb_panic (why=) at >> lib/util.c:1689 >> #4 0x7f4fdffe3e71 in sig_fault (sig=11) at lib/fault.c:46 >> #5 >> #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, >> timeout=0x74964060) at smbd/dnsregister.c:171 >> #7 0x7f4fe01f05cc in main (argc=, >> argv=) at smbd/server.c:689 >> >> >> Other things: >> >> - I did try stopping and restarting the service >> - I ran testparm, and it says my config is fine >> >> -- >> Timothy Normand Miller >> http://www.cse.ohio-state.edu/~millerti >> Open Graphics Project >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba > > -- > Do Lipton Tea employees take coffee breaks? > > | |0| | Jobst Schmalenbach, jo...@barrett.com.au, General Manager > | | |0| Barrett Con
Re: [Samba] HELP: Samba server crashing on me
This is ONLY a guess: * signal 11 means invalid memory reference, so I would check your RAM and even your harddisks, it could be a page fault. (find some other ram, put them in and run it for a while). * may, just maybe your problems from earlier "Unable to connect to CUPS server" have had too many pointer allocations/references that the next one in the chain crashed the server, fix this and check again. this is what I would do first. Jobst On Sun, Sep 06, 2009 at 10:44:01PM -0400, Timothy Normand Miller (theo...@gmail.com) wrote: > For no reason that I can discover, my smb server has started crashing > on me. I'm really hoping someone help me out with this. This is the > relevant portion of the log: > > [2009/09/06 22:24:44, 0] smbd/server.c:main(1274) > smbd version 3.3.7 started. > Copyright Andrew Tridgell and the Samba Team 1992-2009 > [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) > Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No > such file or directory > [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) > Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No > such file or directory > [2009/09/06 22:26:09, 0] smbd/server.c:main(1274) > smbd version 3.3.7 started. > Copyright Andrew Tridgell and the Samba Team 1992-2009 > [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) > Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No > such file or directory > [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) > Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No > such file or directory > [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(40) > === > [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(41) > INTERNAL ERROR: Signal 11 in pid 16066 (3.3.7) > Please read the Trouble-Shooting section of the Samba3-HOWTO > [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(43) > > From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf > [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(44) > === > [2009/09/06 22:26:43, 0] lib/util.c:smb_panic(1673) > PANIC (pid 16066): internal error > [2009/09/06 22:26:43, 0] lib/util.c:log_stack_trace(1777) > BACKTRACE: 8 stack frames: >#0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f4fdfff6b10] >#1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f4fdfff6c1d] >#2 /usr/sbin/smbd [0x7f4fdffe3e71] >#3 /lib/libpthread.so.0 [0x7f4fde09bef0] >#4 /usr/sbin/smbd(dns_register_smbd_reply+0x1c) [0x7f4fdfe59e3b] >#5 /usr/sbin/smbd(main+0x16e8) [0x7f4fe01f05cc] >#6 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4fdca49a26] >#7 /usr/sbin/smbd [0x7f4fdfde1339] > [2009/09/06 22:26:43, 0] lib/fault.c:dump_core(231) > dumping core in /var/log/samba/cores/smbd > > I don't get much out of gdb: > > #0 0x7f4fdca5d645 in raise (sig=) at > ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. > in ../nptl/sysdeps/unix/sysv/linux/raise.c > (gdb) where > #0 0x7f4fdca5d645 in raise (sig=) at > ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > #1 0x7f4fdca5eb63 in abort () at abort.c:88 > #2 0x7f4fdffe38db in dump_core () at lib/fault.c:242 > #3 0x7f4fdfff6d3b in smb_panic (why=) at > lib/util.c:1689 > #4 0x7f4fdffe3e71 in sig_fault (sig=11) at lib/fault.c:46 > #5 > #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, > timeout=0x74964060) at smbd/dnsregister.c:171 > #7 0x7f4fe01f05cc in main (argc=, > argv=) at smbd/server.c:689 > > > Other things: > > - I did try stopping and restarting the service > - I ran testparm, and it says my config is fine > > -- > Timothy Normand Miller > http://www.cse.ohio-state.edu/~millerti > Open Graphics Project > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba -- Do Lipton Tea employees take coffee breaks? | |0| | Jobst Schmalenbach, jo...@barrett.com.au, General Manager | | |0| Barrett Consulting Group P/L & The Meditation Room P/L |0|0|0| +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] ****Re: net rpc rights grant: NT_STATUS_ACCESS_DENIED****
Can someone please help me troubleshoot this? Ryan Suarez wrote: my smb.conf: http://pastebin.ca/1554626 Ryan Suarez wrote: RE: "net rpc rights grant testpc1 SePrintOperatorPrivilege -U testpc1" Failed to grant privileges for testpc1 (NT_STATUS_ACCESS_DENIED) samba_source_3.3.7 on redhat 5 64bit. I have root on the samba server but I don't have admin access to active directory (hence the auth using testpc1). Does the user granting access need some sort of admin privilege in Active Directory? How do I grant this privilege on this samba host (for which I have root) since I don't have admin access in Active Directory? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] HELP: Samba server crashing on me
For no reason that I can discover, my smb server has started crashing on me. I'm really hoping someone help me out with this. This is the relevant portion of the log: [2009/09/06 22:24:44, 0] smbd/server.c:main(1274) smbd version 3.3.7 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:24:44, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:26:09, 0] smbd/server.c:main(1274) smbd version 3.3.7 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:26:09, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such file or directory [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(40) === [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 11 in pid 16066 (3.3.7) Please read the Trouble-Shooting section of the Samba3-HOWTO [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(43) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2009/09/06 22:26:43, 0] lib/fault.c:fault_report(44) === [2009/09/06 22:26:43, 0] lib/util.c:smb_panic(1673) PANIC (pid 16066): internal error [2009/09/06 22:26:43, 0] lib/util.c:log_stack_trace(1777) BACKTRACE: 8 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f4fdfff6b10] #1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f4fdfff6c1d] #2 /usr/sbin/smbd [0x7f4fdffe3e71] #3 /lib/libpthread.so.0 [0x7f4fde09bef0] #4 /usr/sbin/smbd(dns_register_smbd_reply+0x1c) [0x7f4fdfe59e3b] #5 /usr/sbin/smbd(main+0x16e8) [0x7f4fe01f05cc] #6 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f4fdca49a26] #7 /usr/sbin/smbd [0x7f4fdfde1339] [2009/09/06 22:26:43, 0] lib/fault.c:dump_core(231) dumping core in /var/log/samba/cores/smbd I don't get much out of gdb: #0 0x7f4fdca5d645 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) where #0 0x7f4fdca5d645 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x7f4fdca5eb63 in abort () at abort.c:88 #2 0x7f4fdffe38db in dump_core () at lib/fault.c:242 #3 0x7f4fdfff6d3b in smb_panic (why=) at lib/util.c:1689 #4 0x7f4fdffe3e71 in sig_fault (sig=11) at lib/fault.c:46 #5 #6 dns_register_smbd_reply (dns_state=0x0, lfds=0x74963ed0, timeout=0x74964060) at smbd/dnsregister.c:171 #7 0x7f4fe01f05cc in main (argc=, argv=) at smbd/server.c:689 Other things: - I did try stopping and restarting the service - I ran testparm, and it says my config is fine -- Timothy Normand Miller http://www.cse.ohio-state.edu/~millerti Open Graphics Project -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] random samba failures
> we didn't find any useful information in the log files (smbd, winbindd, > client) even if the debug level was raised to 3. > > The problem is that we know when the first client gets rejected, but not > when the originating error occurs. > > if you have any advice to narrow what's causing this issue, please help! > > I can provide any config or log file along with every details for any > tests you may think of. The only thing I can suggest is to attach to one of the hung smbd servers with GDB, and see if you can find out where precisely it has hung. That might at least give you a clue as to what it's waiting for. Cheers, Adam. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smbd uses 10 to 15% CPU w/Vista client
On Sun, Sep 06, 2009 at 04:01:38PM -0700, Ross Boylan wrote: > Below is my smb.conf and then an excerpt from wireshark: Unfortunately the wireshark output is not helpful. Information on how to create useful network traces can be found under http://wiki.samba.org/index.php/Capture_Packets. Volker signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] "net sam provision" and samba 3.4.0
These are the settings i use: [global] workgroup = TESTDOM encrypt passwords = true passdb backend = ldapsam:ldapi:/// domain logons = yes ldapsam:trusted=yes ldapsam:editposix=yes restrict anonymous = 0 log level = 10 log file = /var/log/samba ldap admin dn = cn=admin,dc=samba,dc=org ldap delete dn = yes ldap passwd sync = yes ldap group suffix = ou=groups ldap machine suffix = ou=computers ldap user suffix = ou=users ldap suffix = dc=samba,dc=org ldap ssl = off logon path = template homedir = /home/%U template shell = /bin/bash idmap backend = ldap:ldapi:/// idmap uid = 100-199 idmap gid = 100-199 idmap alloc backend = ldap idmap alloc config : ldap_url = ldapi:/// idmap alloc config : ldap_base_dn = ou=idmap,dc=samba,dc=org idmap alloc config : ldap_user_dn = cn=admin,dc=samba,dc=org Don't forget net idmap secret alloc "password" The docs should probably be updated. On Sun, 6 Sep 2009 21:16:59 +0200, "Zeller, Jan" wrote: > Dear list, > > i had some problems with "net sam provision" using samba 3.4.0 > I followed the instructions described on > http://wiki.samba.org/index.php/Ldapsam_Editposix and those published by iX > 4-6/2008 (www.ix.de) > but the result of "net sam provision" was always : > > # bin/net sam provision > Checking for Domain Users group. > Adding the Domain Users group. > Unable to allocate a new gid to create Domain Users group! > Checking for Domain Admins group. > Adding the Domain Admins group. > Unable to allocate a new gid to create Domain Admins group! > Check for Administrator account. > Adding the Administrator user. > Can't create Administrator user, Domain Admins group not available! > > The "only configuration" which is working under 3.4.0 regarding "net sam > provision" seems to be : > > [global] >workgroup = MYDOM >netbios name = >passdb backend = ldapsam:ldap://yoda.home.lan >ldap admin dn = cn=ldapadm,o=it,dc=home,dc=lan >ldap suffix = o=it,dc=home,dc=lan >ldap ssl = no >idmap alloc backend = ldap >idmap uid = 1-1 >idmap gid = 1-1 >idmap config MYDOM : range = 2-2 >idmap config MYDOM : backend = ldap >idmap alloc config:ldap_url = ldap://yoda.home.lan >idmap alloc config:ldap_user_dn = cn=ldapadm,o=it,dc=home,dc=lan >idmap alloc config:ldap_base_dn = o=it,dc=home,dc=lan >ldapsam:editposix = yes >ldapsam:trusted = yes > > If I omit > idmap uid = > idmap gid = > I obtain the error message mentioned above. > > The only info I get about that problem is from : > Michael Adam (Samba Team, SerNet): ID Mapping Re-Revisited (sambaxp.org) > > "idmap domains" seem to be obsolete. testparm always complains about : > Unknown parameter encountered: "idmap domains" > Ignoring unknown parameter "idmap domains" > > Honestly I don't understand the difference between "idmap alloc backend = " > and "idmap backend = " > > idmap alloc backend (G) > The idmap alloc backend provides a plugin interface for Winbind to use when > allocating Unix uids/gids for Windows SIDs. > This option is to be used in conjunction with the idmap domains parameter > and refers to the name of the idmap module which will provide the id > allocation functionality. > > idmap backend (G) > The idmap backend provides a plugin interface for Winbind to use varying > backends to store SID/uid/gid mapping > tables. This option is mutually exclusive with the newer and more flexible > idmap domains parameter. The main > difference between the "idmap backend" and the "idmap domains" is that the > former only allows one backend for all > domains while the latter supports configuring backends on a per domain > basis. > > Quite confusing for people like me ... > > kind regards, > > Jan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Authentication from Vista?
On Sun, Sep 06, 2009 at 10:59:58AM +0100, raichea wrote: > I had a personal response that pointed me at this link to > a post from Andrew Bartlett, which suggests that you may > need "security = domain" for this to work: > > http://lists.samba.org/archive/samba/2004-February/080470.html > > I'm actually using security=share as most of my shares are > usable by all. Looking at the smb.conf man pages doesn't > really say if and how the security setting affects NTLMv2 > authentication. > > I'd appreciate any insights... I very much doubt security=share works with ntlmv2. Please use security=user. Volker signature.asc Description: Digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] "net sam provision" and samba 3.4.0
Dear list, i had some problems with "net sam provision" using samba 3.4.0 I followed the instructions described on http://wiki.samba.org/index.php/Ldapsam_Editposix and those published by iX 4-6/2008 (www.ix.de) but the result of "net sam provision" was always : # bin/net sam provision Checking for Domain Users group. Adding the Domain Users group. Unable to allocate a new gid to create Domain Users group! Checking for Domain Admins group. Adding the Domain Admins group. Unable to allocate a new gid to create Domain Admins group! Check for Administrator account. Adding the Administrator user. Can't create Administrator user, Domain Admins group not available! The "only configuration" which is working under 3.4.0 regarding "net sam provision" seems to be : [global] workgroup = MYDOM netbios name = passdb backend = ldapsam:ldap://yoda.home.lan ldap admin dn = cn=ldapadm,o=it,dc=home,dc=lan ldap suffix = o=it,dc=home,dc=lan ldap ssl = no idmap alloc backend = ldap idmap uid = 1-1 idmap gid = 1-1 idmap config MYDOM : range = 2-2 idmap config MYDOM : backend = ldap idmap alloc config:ldap_url = ldap://yoda.home.lan idmap alloc config:ldap_user_dn = cn=ldapadm,o=it,dc=home,dc=lan idmap alloc config:ldap_base_dn = o=it,dc=home,dc=lan ldapsam:editposix = yes ldapsam:trusted = yes If I omit idmap uid = idmap gid = I obtain the error message mentioned above. The only info I get about that problem is from : Michael Adam (Samba Team, SerNet): ID Mapping Re-Revisited (sambaxp.org) "idmap domains" seem to be obsolete. testparm always complains about : Unknown parameter encountered: "idmap domains" Ignoring unknown parameter "idmap domains" Honestly I don't understand the difference between "idmap alloc backend = " and "idmap backend = " idmap alloc backend (G) The idmap alloc backend provides a plugin interface for Winbind to use when allocating Unix uids/gids for Windows SIDs. This option is to be used in conjunction with the idmap domains parameter and refers to the name of the idmap module which will provide the id allocation functionality. idmap backend (G) The idmap backend provides a plugin interface for Winbind to use varying backends to store SID/uid/gid mapping tables. This option is mutually exclusive with the newer and more flexible idmap domains parameter. The main difference between the "idmap backend" and the "idmap domains" is that the former only allows one backend for all domains while the latter supports configuring backends on a per domain basis. Quite confusing for people like me ... kind regards, Jan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] NT_STATUS_BAD_NETWORK_NAME
Hi i'm trying to list the shares on my Brother HL-5250DN printer with the smbtree command on linux but i keep getting the NT_STATUS_BAD_NETWORK_NAME error message. I can however print to one of the shared printing services with cups through the Device URI: smb://BRN_E1BEFA/BINARY_P1. Does anyone know what the problem could be? linux-wick:~ # smbtree Password: WORKGROUP \\DELL_SSOUFFRI Samba 3.2.7-11.3.2-2154-SUSE-CODE11 \\DELL_SSOUFFRI\BRN_E1BEFA BROTHER MONO LASER DUPLEX \\DELL_SSOUFFRI\YASTbrother Brother HL-5250DN BR-Script3 \\DELL_SSOUFFRI\profilesNetwork Profiles Service \\DELL_SSOUFFRI\users All users \\DELL_SSOUFFRI\groups All groups \\DELL_SSOUFFRI\print$ Printer Drivers \\DELL_SSOUFFRI\IPC$IPC Service (Samba 3.2.7-11.3.2-2154-SUSE-CODE11) \\BRN_E1BEFA cli_start_connection: failed to connect to BRN_E1BEFA<20> (0.0.0.0). Error NT_STATUS_BAD_NETWORK_NAME -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Authentication from Vista?
I had a personal response that pointed me at this link to a post from Andrew Bartlett, which suggests that you may need "security = domain" for this to work: http://lists.samba.org/archive/samba/2004-February/080470.html I'm actually using security=share as most of my shares are usable by all. Looking at the smb.conf man pages doesn't really say if and how the security setting affects NTLMv2 authentication. I'd appreciate any insights... Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba