[Samba] Logon script change failure
Thanks, I've got basically the same type of thing configured now but the PCs were initially joined to the domain and have been signing on and receiving login scripts in the form of %U.bat for years. Now though I modify smb.conf to point them to logon.bat and for some reason they continue to look for %U.bat and fail to process the logon.bat file. I've patched around this via symlinking all possible usernames as {username}.bat to logon.bat in the netlogon directory. Frustrating to have to do this. I've tried stopping samba and removing .tdb files with no luck as well. The other thing I had asked about, upgrading RedHat9 machines from Samba2 to Samba3 we've approached again. We've been successful in doing so, but not without some pain. The section titled Linux clients printing to Windows XP machine at the end of this article is relevant: http://www.wlug.org.nz/SambaPrinting The symlink of smb - smbspool had to be made. Afterwards we could not add a printer pointing to a WinXP share via the graphical system-config-printer GUI tool but could using the text version, system-config-printer-tui. Strange... Also, we discovered that even if Samba was set to pass on print data raw, configuring the printer in CUPS with a printer driver appeared to cause the data received from the PC to have print driver rules applied to it twice. We setup the printer as RAW in CUPS and it's working now. Also strange... Hi Wendel, I've this in my smb.conf, and it works for any M$ windows in my domain [global] logon path = logon home = logon script = logon.bat # logon path = \\%L\profiles\%U # logon home = \\%L\%U\.9xprofile # logon drive = H: [netlogon] comment = NLService path = /var/lib/samba/netlogon/%U valid users = %U browseable = no writeable = no In this configuration, each user will have their own logon.bat, but of course you can change it to suit your needs. Regards, sato On 3/20/07, Wendell Dingus wendell at bisonline.com wrote: I've got a bunch of servers which for a long time now have provided domain logon scripts of the form %u.bat or %m.bat I've recently created a more capable logon script in Kixtart and have changed smb.conf to launch it for all users as just logon.bat So no more per-machine or per-user scripts, everybody runs the same one, and inside it it does per-machine and/or per-user things. At maybe 2/3rds of the sites this works fine. For the others I'm getting errors in logs where the PC is trying to find {machinename}.bat or {username}.bat and failing and thusly *not* processing the logon script at all. As if the change in smb.conf is being totally ignored. I've restarted samba, rebooted, etc.. In a few cases I've even tried renaming the entire /var/cache/samba/ directory and restarting samba so that it creates new copies of all the .tdb's. I'm not certain that *all* instances of this are Samba2 but am kind of suspecting they are. We've still got a bunch of customers with RH9 and Samba 2.2.12 Hey it's doing what we ask and besides this latest problem is working fine. So, any suggestions how to get a bunch of WinXP PCs to start looking for logon.bat instead of %u.bat? In testing I've simply symlinked logon.bat to all the usernames in netlogon and that works, as a band-aid. If Samba2 turns out to be the issue and an upgrade to Samba3 is to be suggested, something else that's been a problem for me I could ask about. I've tried the Samba3 RPMs provided at samba.org and they worked great, except... The ability to define a printer in cups pointing to a shared printer on a PC as \\{PCNAME}\{SHARENAME} ceased to work and I ended up having to revert back to Samba2. I'd love to resolve this one as well and breathe a bit more life into the RH9 boxes we may not get upgraded for a long time still. They're all stock RH9 with the Fedora Legacy updates all applied. # rpm -qa | grep -i 'samba\|cups' | sort cups-1.1.17-13.3.0.14.legacy cups-devel-1.1.17-13.3.0.14.legacy cups-libs-1.1.17-13.3.0.14.legacy gimp-print-cups-4.2.4-5 qtcups-2.0-15 qtcups-devel-2.0-15 redhat-config-samba-1.0.4-1 samba-2.2.12-0.90.6.legacy samba-client-2.2.12-0.90.6.legacy samba-common-2.2.12-0.90.6.legacy samba-swat-2.2.12-0.90.6.legacy Thanks! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Logon script change failure
I've got a bunch of servers which for a long time now have provided domain logon scripts of the form %u.bat or %m.bat I've recently created a more capable logon script in Kixtart and have changed smb.conf to launch it for all users as just logon.bat So no more per-machine or per-user scripts, everybody runs the same one, and inside it it does per-machine and/or per-user things. At maybe 2/3rds of the sites this works fine. For the others I'm getting errors in logs where the PC is trying to find {machinename}.bat or {username}.bat and failing and thusly *not* processing the logon script at all. As if the change in smb.conf is being totally ignored. I've restarted samba, rebooted, etc.. In a few cases I've even tried renaming the entire /var/cache/samba/ directory and restarting samba so that it creates new copies of all the .tdb's. I'm not certain that *all* instances of this are Samba2 but am kind of suspecting they are. We've still got a bunch of customers with RH9 and Samba 2.2.12 Hey it's doing what we ask and besides this latest problem is working fine. So, any suggestions how to get a bunch of WinXP PCs to start looking for logon.bat instead of %u.bat? In testing I've simply symlinked logon.bat to all the usernames in netlogon and that works, as a band-aid. If Samba2 turns out to be the issue and an upgrade to Samba3 is to be suggested, something else that's been a problem for me I could ask about. I've tried the Samba3 RPMs provided at samba.org and they worked great, except... The ability to define a printer in cups pointing to a shared printer on a PC as \\{PCNAME}\{SHARENAME} ceased to work and I ended up having to revert back to Samba2. I'd love to resolve this one as well and breathe a bit more life into the RH9 boxes we may not get upgraded for a long time still. They're all stock RH9 with the Fedora Legacy updates all applied. # rpm -qa | grep -i 'samba\|cups' | sort cups-1.1.17-13.3.0.14.legacy cups-devel-1.1.17-13.3.0.14.legacy cups-libs-1.1.17-13.3.0.14.legacy gimp-print-cups-4.2.4-5 qtcups-2.0-15 qtcups-devel-2.0-15 redhat-config-samba-1.0.4-1 samba-2.2.12-0.90.6.legacy samba-client-2.2.12-0.90.6.legacy samba-common-2.2.12-0.90.6.legacy samba-swat-2.2.12-0.90.6.legacy Thanks! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3 and RH9
I realize RH9 binary RPMs are regularly made available by the Samba team, but.. I can't seem to get printing to work in conjunction with them, specifically to shared printers on Windows PCs. Has anyone got a solution for this, other than upgrade RH9 to something else. I've got a lot of RH9 boxes and it would be difficult to move them forward and they're doing the job just fine.. I'd like the ability of using net and some of the other things Samba3 offers though. Trying to add a printer of type smb fails as does printing to printers pre-configured this way. I've tried 3.0.21a and 21b so far. Thanks. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Print Problem
I looked through the mailing list archives and tried some queries against the searchable with no success. I've got a strange problem... Customer calls up unable to print. Everything else is working fine, nobody made any Samba or other changes just suddenly no PC can print to a Samba-shared printer. Server is AIX, Samba is 2.2.3a compiled by IBM from the IBM Toolbox site. Same config I have running on 10 sites and this one for a long time up until now. Have rebooted PCs, rebooted the server, etc... I found a way to reproduce the error SSH'ed into their server from remote though: # echo test | smbclient server\\printer rootspwd -N -P -c 'print -' added interface ip=192.168.100.10 bcast=192.168.100.255 nmask=255.255.255.0 Domain=[DOM] OS=[Unix] Server=[Samba 2.2.3a] NT_STATUS_NO_SUCH_FILE opening remote file stdin-23850 Here's a snippet of the log file with debug=4: [2002/09/18 12:49:46, 3] smbd/dosmode.c:unix_mode(111) unix_mode(stdin-26128) returning 0744 [2002/09/18 12:49:46, 3] printing/printing.c:print_cache_expired(772) print cache expired for queue las1 (last_cache = 1032371363, time now = 1032371386, qcachetime = 10) [2002/09/18 12:49:46, 3] printing/print_generic.c:print_run_command(88) Running the command `lpq -Plas1' gave 0 [2002/09/18 12:49:46, 3] printing/printing.c:print_queue_update(396) 0 jobs in queue for las1 [2002/09/18 12:49:47, 3] printing/printing.c:print_job_start(936) print_job_start: either jobid (6956)==next_jobid(6956) or print_job_store failed. [2002/09/18 12:49:47, 3] printing/printing.c:print_job_start(985) print_job_start: returning fail. Error = No such file or directory [2002/09/18 12:49:47, 3] smbd/error.c:error_packet(91) error string = No such file or directory [2002/09/18 12:49:47, 3] smbd/error.c:error_packet(103) error packet at smbd/reply.c(1650) cmd=45 (SMBopenX) NT_STATUS_NO_SUCH_FILE [2002/09/18 12:49:47, 3] smbd/process.c:timeout_processing(1092) receive_smb error (Error 0) exiting [2002/09/18 12:49:47, 3] smbd/sec_ctx.c:set_sec_ctx(314) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2002/09/18 12:49:47, 2] smbd/server.c:exit_server(458) Closing connections I've tried changing the path= in [printers] thinking it couldn't create a file for some reason. No luck... Thanks in advance for any suggestions! -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Print Problem
I do not know, but I have since resolved it... IBM compiles lots of open source apps and makes them available for AIX in RPM format. Initially before sending my mailing list message I had done rpm -Uvh samb* --force --nodeps just to freshen the files. After trying tons of other things to no avail I removed all the RPM packages and re-installed them. Started working immediately... Very strange. Thanks for helping though! -Original Message- From: Gerald Carter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 3:00 PM To: Wendell Dingus Cc: [EMAIL PROTECTED] Subject: Re: [Samba] Print Problem On Wed, 18 Sep 2002, Wendell Dingus wrote: [2002/09/18 12:49:47, 3] printing/printing.c:print_job_start(936) print_job_start: either jobid (6956)==next_jobid(6956) or print_job_store failed. [2002/09/18 12:49:47, 3] printing/printing.c:print_job_start(985) print_job_start: returning fail. Error = No such file or directory [2002/09/18 12:49:47, 3] smbd/error.c:error_packet(91) error string = No such file or directory Are you below the min print space ? cheers, jerry - Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org --http://www.plainjoe.org Sam's Teach Yourself Samba in 24 Hours 2ed. ISBN 0-672-32269-2 --I never saved anything for the swim back. Ethan Hawk in Gattaca-- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba