Re: [Samba] Tips/hints for Windows network management
Am Dienstag, 20. Februar 2007 schrieb Dave Ewart: Deploying software to the WinXP machines: would be nice check http://wpkg.org/ works like a charme br, Sebastain pgpHw03FsycVf.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Domain logons and client IP broadcasts
I'm sorry, but I don't know the cause. You should make sure, that Lab-119 actually uses DHCP. Have a look at the blocked packets of the firewall and compare with Lab-101. I had the same error domain not available, but a different scenario... I think it was solved, by joining the PDC to itself - but seems not be related to your problem. If Lab-119 is a windows machine, I would recommend a reinstall - most times this work quite well ;) kind regards, Sebastian Am Dienstag, 6. Februar 2007 schrieb Postmaster: Sebastian Held wrote: Am Donnerstag, 1. Februar 2007 schrieb Sherwood Botsford: dhcp server options netbios-node-type =2 netbios-name-sever = PDC IP samba wins support = yes # wins server - Domain logins don't work Did you try to set: name resolve order = wins lmhosts on your Samba PDC? Is Samba a local and domain master browser? Have a look at the browse data: nmblookup -R -U winsServer -S nameToLookUp kind regards, Sebastian Firstly, thanks for your help in this , Sebastion. You have been amazingly patient. OK: More data: Lab-101 is set with a firewall that permits broadcasts, and allows domain logins. Lab-119 is set with a firewall that blocks broadcasts. From it i get a 'domain not available' message, but if I log in with a cached roaming profile, network shares work. Conan is the PDC of my domain, SJSA and is the master browser. I have a single network, so it is also the local master. conan# nmblookup -R -U sjsa -S lab-118 querying lab-101 on 192.168.1.241 192.168.1.101 lab-10100 Looking up status of 192.168.1.118 LAB-10100 - M ACTIVE SJSA00 - GROUP M ACTIVE SJSA1e - GROUP M ACTIVE conan# nmblookup -R -U sjsa -S lab-119 querying lab-119 on 192.168.1.241 192.168.1.119 lab-11900 Looking up status of 192.168.1.119 LAB-119 00 - M ACTIVE SJSA00 - GROUP M ACTIVE SJSA1e - GROUP M ACTIVE *** No effective difference between the two types. Relevent chunks of smb.conf workgroup = SJSA netbios name = CONAN server string = Conan the Librarian security = DOMAIN ** Excerpt from nmbd -d2 Samba server CONAN is now a domain master browser for workgroup SJSA on subnet 192.168.1.241 * announce_local_master_browser_to_domain_master_browser: We are both a domain and a local master browser for workgroup SJSA. Do not announce to ourselves * Runing findsmb from a workstation not running nmbd shows that Conan is a master and local browse master, and postie is a local browse master. If I log in from lab-101 the following shows up in the nmbd log file. process_logon_packet: Logon from 192.168.1.101: code = 0x12 process_logon_packet: Logon from 192.168.1.101: code = 0x12 process_logon_packet: Logon from 192.168.1.101: code = 0x12 process_logon_packet: Logon from 192.168.1.101: code = 0x12 and the logon is succesful. If I log on from lab-119 no lines show up, and the attempt fails. If I run tcpdump -vvv host 192.168.1.119 during a login there are no packets at all. However there is sporadic traffic between lab-119 and Conan. e.g: arp packets and the following: 11:08:29.891131 lab-119.sjsa.internal.net.netbios-ns conan.sjsa.internal.net.n etbios-ns: NBT UDP PACKET(137): REFRESH(8); REQUEST; UNICAST TrnID=0x9965 OpCode=8 NmFlags=0x0 Rcode=0 QueryCount=1 AnswerCount=0 AuthorityCount=0 AddressRecCount=1 QuestionRecords: Name=LAB-119 NameType=0x00 (Workstation) QuestionType=0x20 QuestionClass=0x1 ResourceRecords: Name=LAB-119 NameType=0x00 (Workstation) ResType=0x20 ResClass=0x6C70 TTL=499435589 (0x1dc4c845) ResourceLength=33945 ResourceData= [000] 0D 00 60 00 00 00 ..`... (ttl 128, id 54446, len 96) pgpyIj3zx9qsM.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Domain logons and client IP broadcasts
Am Donnerstag, 1. Februar 2007 schrieb Sherwood Botsford: dhcp server options netbios-node-type =2 netbios-name-sever = PDC IP samba wins support = yes # wins server - Domain logins don't work Did you try to set: name resolve order = wins lmhosts on your Samba PDC? Is Samba a local and domain master browser? Have a look at the browse data: nmblookup -R -U winsServer -S nameToLookUp kind regards, Sebastian pgp1WBpAjYQ3b.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Domain logons and client IP broadcasts
Am Dienstag, 30. Januar 2007 schrieb Sherwood Botsford: Why does stopping ip broadcasts break domain logons, but not browsing shares? Did you specify a WINS server for all clients (pointing to your PDC)? pgpUggBIm9CaB.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Horrible write performance from XP to Samba
Hi, Am Donnerstag, 5. Oktober 2006 14:56 schrieb Peter Daum: maybe some people would be adventurous enough to just try it out: My results (only 1 measurement taken) WinXP64 - Samba-3.0.23b/SuSE-Linux-9.2:2:08 min = 8192 kiB/s (smbd @18% CPU) other direction: 2:21 min = 7437 kiB/s (smbd @10% CPU) Samba - Win2k: 4:52 min = 3591 kiB/s (smbd @5% CPU) Win2k - Samba: 2:22 min = 7384 kiB/s (smbd @15% CPU) The windows machines are not the same. compare to nfs performance: Samba machine - other nfs machine: 1:58 min = 8886 kiB/s other direction: 1:55 min = 9118 kiB/s br, Sebastian pgpTBNdRpJ8G8.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Horrible write performance from XP to Samba
Am Donnerstag, 5. Oktober 2006 16:41 schrieben Sie: How about Windows client to Windows client speeds? I'm getting the feeling the problem might be the speed of the hard drives on your clients. For me and my budget, 8 MB/s must be enough. But here are the requested values: Copying initiated from WinXP64: WinXP64 - Win2k: 3:10 min Win2k - WinXP64: 2:08 min Copying initiated from Win2k: WinXP64 - Win2k: 5:28 min Win2k - WinXP64: 1:53 min I don't know, why these values differ that much, if the copying machine is changed... br, Sebastian pgpwdj2PJl1wp.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Horrible write performance from XP to Samba
Am Donnerstag, 5. Oktober 2006 17:48 schrieben Sie: Have you shut down all other processes including anti-virus to make sure there isn't something else causing a wide variance? Antivirus (Sophos) is running on both machines, but I expect Sophos to do nothing, because it's not an executable. Maybe rerunning the test will clearify that. Otherwise the system is idle. But the only thing I wanted to show is, that my WinXP has no problems writing to a Samba share. Performance is good (at least in my opinion). br, Sebastian pgp0NAbEtREpg.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Horrible write performance from XP to Samba
Am Donnerstag, 5. Oktober 2006 18:01 schrieb Sebastian Held: Maybe rerunning the test will clearify that. Otherwise the system is idle. It has no impact. pgpdF1XX6SdaB.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] no route to host
You have a routing problem. Have a look at /sbin/route and add the subnet NEW is in to the table. Am Mittwoch, 17. Mai 2006 14:34 schrieb Alessio Bandini: error connecting to YYY.YYY.YYY.YYY:139 (No route to host) Error connecting to YYY.YYY.YYY.YYY (No route to host) -- Dipl.-Ing. Sebastian Held Universität Duisburg-Essen Campus Duisburg Fachbereich Ingenieurwissenschaften Abteilung Elektrotechnik und Informationstechnik Hochfrequenztechnik Bismarckstraße 81, Gebäude BB 1117 Eingang Oststraße 99 D - 47057 Duisburg Tel.: +49 (203) 379-3285 Fax.: +49 (203) 379-5135 pgpHFvxY4Crfi.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Force update of Samba point-and-print drivers?
I'm using the following script at logon time: --- add_network_printers.vbs --- on error resume next Set WshNetwork = CreateObject(WScript.Network) PrinterPath = \\server\c510-sw WshNetwork.RemovePrinterConnection PrinterPath, true, true WshNetwork.AddWindowsPrinterConnection PrinterPath Select Case UCase(WshNetwork.ComputerName) Case WKS01 WshNetwork.SetDefaultPrinter HP DeskJet 870C Case WKS02 WshNetwork.SetDefaultPrinter HP DeskJet 840C Case Else WshNetwork.SetDefaultPrinter \\server\c510-sw End Select --- END --- This removes the print driver and reinstalls it. Am Freitag, 3. März 2006 16:42 schrieb Jim Hogan: I hope someone here can offer an easy approach to the following (somewhat simplified) scenario. We have a Samba domain that is running well. We have 10 Samba/CUPS printers and used the Windows Print Wizard method noted on pages 225-226 (section 17.6.1) of the Prentice-Hall-published Official Samba-3 HOWTO to install the drivers. Over time, we learned to pay particular attention the the printer initialization gotchas in section 17.7.4 on page 238 :) Now let's say that 100 client PCs have installed Printer X with Point-and-Print Add Printer Wizard. But then say an updated driver comes out for that model or we realize that the initial default settings for Printer X aren't ideal -- duplexer not initialized, say. Without creating a new Samba/CUPS queue with a different name, is there a straightforward way to install updated drivers (or the same drivers so that they can be reinitialized) and then forcing client PCs to adopt the new/tweaked drivers? The latter circumstance (we'd like to reinitialized the drivers for 1 printer) is actually our situation, but it occurred to me that the issue would come up any time we'd like to distribute updated drivers. Thanks! Jim -- -*- Jim Hogan Seattle, WA pgpop8uvwzHyN.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Smbpasswd in a cron job
Try echo -e ${PASSWD}\n${PASSWD} | smbpasswd -a -s ${USER} br, Sebastian pgpY2IZTjjNNb.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba from Linux
Am Freitag, 20. Januar 2006 00:33 schrieb Adam Nielsen: Make sure you're using the *exact* username and password as you'd use when logging in to the Windows box. Try using shell escapes. pgpICyUXjdETq.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbd rpc.mountd eating up all the cpu
Am Freitag, 20. Januar 2006 02:25 schrieb James D. Parra: Don't know what happened, but Samba stopped serving up shares. Top shows 'smbd' using 66% of the cpu and 'rpc.mountd' using 33%. The samba log on shows; seems like a problem with nfs to me. Are your shares serving files from a nfs mount point? pgps4LnqGJBeI.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.0.14 - very puzzling domain browsing problems
Are you sure nmbd is running? Did you query the wins server by using: nmblookup -U IPADDR_OF_WINS_SERVER -R WORKSTATION_NAME_TO_ASK_FOR pgpA1wkOUs8no.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Smbclient to send messages
Is the corresponding Service on your WinXP machine enabled? (called Nachrichtendienst in german) Am Donnerstag, 19. Januar 2006 12:40 schrieb Jonis Maurin Ceará: Hi. I'm trying to send messages to XP users on my domain but i got this error: bmw:/tmp# smbclient -M diretoria02 Connection to diretoria02 failed I also got this: bmw:/tmp# nmblookup diretoria02 querying diretoria02 on 127.255.255.255 querying diretoria02 on 192.168.255.255 192.168.0.25 diretoria0200 What could be? My client is runing WinXP SP2 with firewall disabled -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to see loging of the user
Hi, you can use the utmp logging feature. Place the following options in the global group of smb.conf: utmp = Yes utmp directory = /var/log/samba/utmp wtmp directory = /var/log/samba/wtmp then mkdir -p /var/log/samba/utmp mkdir -p /var/log/samba/wtmp touch /var/log/samba/utmp/utmpx touch /var/log/samba/wtmp/wtmpx This should do the trick. The command last -f /var/log/samba/wtmp/wtmpx shows you the infos. br, Sebastian pgp4yFQH0q1G1.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to see loging of the user
Am Dienstag, 3. Januar 2006 14:08 schrieb Patrick DUBAU: - only the 8 first characters from the loging name are stored (for example : patrick. instead of patrick.dubau, see capture below). Is there a vay to pass over this limit ? see attached patch for the last-command. If you have a look into the wtmpx file, you will see that the full name is stored. This patch is a quick and dirty way to show the full username. Use sysvinit-2.86 as original source. - for the 2 last lines from the capture below (lines starting by isabelle) i don't understand the meaning. The last line says : she logged in at 13:40 and logout at 13:40. But line before says she's still connected... Strange no ? (for the same station !) There are two connections to the server (denoted by smb/1 and /2). For example (don't know if I'm right...) the initial connection to the netlogon share may be the cause. - we have 2 severs (1 PDC and 1 BDC) so only one of them will log the login and logout, and not only the same, in fact the first which responds Right ? I don't have any expertise in BDCs ... I've only a PDC running. Hey it's a linux machine; why do you need two of them :) br, Sebastian pgpI50AEzhaNv.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to see loging of the user
Am Dienstag, 3. Januar 2006 15:43 schrieb Sebastian Held: see attached patch for the last-command. yeah, it stripped my patch... inline version: --- last.orig 2004-07-30 14:16:26.0 +0200 +++ last.c 2006-01-03 15:35:26.0 +0100 @@ -451,13 +451,13 @@ #endif if (!altlist) { snprintf(final, sizeof(final), - %-8.8s %-12.12s %-16.16s + %-8s %-12.12s %-16.16s %-16.16s %-7.7s %-12.12s\n, p-ut_name, utline, domain, logintime, logouttime, length); } else { snprintf(final, sizeof(final), - %-8.8s %-12.12s %-16.16s %-7.7s %-12.12s %s\n, + %-8s %-12.12s %-16.16s %-7.7s %-12.12s %s\n, p-ut_name, utline, logintime, logouttime, length, domain); } br, Sebastian pgpvv0zcJZ4Wa.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to see loging of the user
Am Dienstag, 3. Januar 2006 16:05 schrieb Patrick DUBAU: 3 : doing dpkg -l | grep sysvi gives : ii sysvinit 2.86.ds1-1 System-V like ini that's good but how do i use it ? No man, no command. Can you give me a help about it ? You're using debian I think. For the patch too do anything useful you need the development package for sysvinit (should be called sysvinit-dev.deb I think). Additionally you need the full devel toolchain including gcc the compiler, patch and so on. Now extract the sysvinit-dev.deb file (do not know how to do it on debian maybe try midnight commander mc). You got a tar-ball or direct the needed directory structure with the src folder. Go into this src folder put my patch file (last.patch) in it and execute: patch last.patch this command responds with: patching file last.c And finally you can type: make last which in turn responds with: gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE -c -o last.o last.c gcc -s -o last last.o And, voila! you have a new executeable last. br, Sebastian pgpkrRGWRpDgQ.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] high cpu load with 3.0.20b (not using ldap)
Hi, I've a problem, with a cpu load (66% while running a separate virusscanner with another 30%) of one of my smbd processes. It only happens occasionally (approx. 2 times in the last 4 weeks). The backtrace is attached. It seems to me, that smbd is looking for colorlaser5quota. This printer isn't attached anymore to the server and neither cups nor samba configuration files include a section for this printer. Is this error due to a bug in libc.so.6 not returning from __nis_hash() ? Or because this machine is a NIS-server? What to do next, to debug this further? ---nsswitch.conf--- passwd: compat group: compat hosts: files lwres dns networks: files dns services: files protocols: files rpc:files ethers: files netmasks: files netgroup: files publickey: files bootparams: files automount: files nis aliases:files (gdb) bt #0 0x403172a2 in __nis_hash () from /lib/tls/libc.so.6 #1 0x403187e6 in __nscd_cache_search () from /lib/tls/libc.so.6 #2 0x40317374 in nscd_getpw_r () from /lib/tls/libc.so.6 #3 0x40317662 in __nscd_getpwnam_r () from /lib/tls/libc.so.6 #4 0x402b92bd in getpwnam_r@@GLIBC_2.1.2 () from /lib/tls/libc.so.6 #5 0x402b8c81 in getpwnam () from /lib/tls/libc.so.6 #6 0x081f038c in sys_getpwnam (name=0x798716af ) at system.c:883 #7 0x081f4658 in getpwnam_alloc (name=0xbfffe500 COLORLASER5QUOTA) at util_pw.c:103 #8 0x081f2aa7 in Get_Pwnam_internals (user=0xbfffec6f colorlaser5quota, user2=0xbfffe500 COLORLASER5QUOTA) at username.c:279 #9 0x081f2c96 in Get_Pwnam_alloc (user=0xbfffec6f colorlaser5quota) at username.c:315 #10 0x081f2cb1 in Get_Pwnam (user=0x798716af ) at username.c:329 #11 0x081f21a5 in get_user_home_dir (user=0x798716af ) at username.c:76 #12 0x080eb681 in find_service (service=0xbfffec6f colorlaser5quota) at service.c:139 #13 0x08149801 in set_printer_hnd_name (Printer=0x83e4ad0, handlename=0xbfffec60 134.91.90.52) at srv_spoolss_nt.c:539 #14 0x08149cf8 in open_printer_hnd (p=0x83d7f80, hnd=0xbfffeda0, name=0xbfffec60 134.91.90.52, access_granted=0) at srv_spoolss_nt.c:637 #15 0x0814bce4 in _spoolss_open_printer_ex (p=0x83d7f80, q_u=0xbfffedc0, r_u=0xbfffeda0) at srv_spoolss_nt.c:1619 #16 0x081445f0 in api_spoolss_open_printer_ex (p=0x83d7f80) at srv_spoolss.c:80 #17 0x08176802 in api_rpcTNP (p=0x83d7f80, rpc_name=0x83d7f8e spoolss, api_rpc_cmds=0x8346d80, n_cmds=51) at srv_pipe.c:1571 #18 0x08176541 in api_pipe_request (p=0x83d7f80) at srv_pipe.c:1517 #19 0x0817137f in process_request_pdu (p=0x83d7f80, rpc_in_p=0xbfffeff0) at srv_pipe_hnd.c:668 #20 0x0817159e in process_complete_pdu (p=0x83d7f80) at srv_pipe_hnd.c:740 #21 0x08171856 in process_incoming_data (p=0x83d7f80, data=0x836a120 , n=196) at srv_pipe_hnd.c:838 #22 0x08171a63 in write_to_internal_pipe (np_conn=0x83d7f80, data=0x836a120 , n=212) at srv_pipe_hnd.c:877 #23 0x081719d2 in write_to_pipe (p=0x83cade0, data=0x836a110 \005, n=212) at srv_pipe_hnd.c:860 #24 0x0809a4fa in api_fd_reply (conn=0x83e4320, vuid=101, outbuf=0x405aa008 , setup=0x83d2620, data=0x798716af , params=0x0, suwcnt=2, tdscnt=2038896303, tpscnt=0, mdrcnt=1024, mprcnt=0) at ipc.c:304 #25 0x0809a7a5 in named_pipe (conn=0x83e4320, vuid=101, outbuf=0x405aa008 , name=0xb2e6 , setup=0x83d2620, data=0x836a110 \005, params=0x0, suwcnt=2, tdscnt=212, tpscnt=0, msrcnt=0, mdrcnt=1024, mprcnt=0) at ipc.c:350 #26 0x0809b3dc in reply_trans (conn=0x83e4320, inbuf=0x40565008 , outbuf=0x405aa008 , size=300, bufsize=131072) at ipc.c:561 #27 0x080ea26a in switch_message (type=37, inbuf=0x40565008 , outbuf=0x405aa008 , size=300, bufsize=2038896303) at process.c:991 #28 0x080ea31a in construct_reply (inbuf=0x40565008 , outbuf=0x405aa008 , size=2038896303, bufsize=2038896303) at process.c:1021 #29 0x080ea66f in process_smb (inbuf=0x40565008 , outbuf=0x405aa008 ) at process.c:1121 #30 0x080eb368 in smbd_process () at process.c:1670 #31 0x0827e40b in main (argc=2038896303, argv=0xb6c4) at server.c:975 (gdb) br, S. Held -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problem with roaming profiles
Hi, this may be of interest to you: http://www.microsoft.com/downloads/details.aspx?FamilyID=1b286e6d-8912-4e18-b570-42470e2f3582displaylang=en a service called User Profile Hive Cleanup Service -- Warum können Pinguine nicht fliegen? Was nicht fliegt, kann nicht abstürzen. Never be afraid of doing tasks you are not familiar with. Noah's Ark was built by an amateur. Professionals have built the Titanic -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: multiple domain login failures
Am Freitag 30 September 2005 17:05 schrieb John T Benedetto: As I said, maybe not relevant to your situation... Hi, I already checked the WINS settings (they are statically set) should not be the problem. But thanks for your answer! I will double check it again. br, Sebastian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: multiple domain login failures
Am Donnerstag, 29. September 2005 18:26 schrieb Rex Dieter: Stan Garvin wrote: Offhand, you're using a relatively old version of samba. I'd recommend upgrading to the latest version (3.0.14a at the moment) and re-test. -- Rex Hi, I'm having the same problem... using the rpm from SuSE-9.2 (version 3.0.9...) Upgrading to 3.0.20 doesn't solve it. Some users can login from a particular workstation, while others cannot. I don't know how to debug that kind of failure (Error dialog from WinXP said something like domain is not available) The problem shows up right after adding a new user to the samba server. But don't know if it is the cause. br, Sebastian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba