On 10/23/2010 01:48 PM, Lars Müller wrote: Here I always defer to you on specific advise. The truth of the config is that it has just been adapted and updated since 2.0.2 (2001?) with the new defaults as they came along and with feedback on specific issues from the samba list (You, Jeremy, Jerry, John, Andrew (Bartlett & Tridgell), et al.) It probably needs a good going through to clean it completely up, but since it has just kept working..., working..., working... for the past 5-6 years all I've done is just add a tweak or two. see inline below:
On Fri, Oct 22, 2010 at 07:15:21PM -0500, David C. Rankin wrote: [ 8< ]
Also, check your samba config. I've included the relevant print setup from /etc/samba/smb.conf below:
19:09 nirvana:~> noc /etc/samba/smb.conf [global] use sendfile = No
This is the upstream default setting (uds).
Yep, dunno when that crept into the config, but it has remained since the first version it became relevant to...
<snip> printcap name = cups
This is the explicit default setting with any SUSE product since (at least) 2005-06-16 12:47:22
same
load printers = yes
uds too.
same
printing = cups
Also since 2005-06-16 12:47:22
same
show add printer wizard = no disable spoolss = yes
Well, this sounds like you got hit by the existing printer spooler bugs.
Yep, this came in 2006-2007 time frame. I know it was suggested when (2.2.7?) broke standalone support and I was going back and forth with Jerry, I think, building from sources sending in level 10 debugs. I've just never experimented removing it since.
<snip> smb ports = 139 hosts allow = 192.168.6. 127. # subnet + don't forget localhost <snip> name resolve order = wins lmhosts bcast # change as required wins support = yes <snip> [printers] comment = All Printers path = /var/spool/samba # make sure permissions are 0777
Why not using /var/tmp?
No reason other than that's where it was originally for 2.0.2 on Mandrake 7.2 and I just never changed it. Any reason to change now? I guess I'm just stuck in my ways. When I think temp print space I think 'spool' as in /var/spool, and I've just always had a /var/spool/samba so when printing goes to hell, I know where to look :p
browseable = no guest ok = yes public = yes writable = no printable = yes
KISS and therefore use only one as in the default smb.conf. Makes your config file easier to read.
Yes, I know 'guest ok = yes' and 'public = yes' are redundant, but that was one of the 'new config file had new default, so it got added, and the clean up was put off until an opportune time (like now) when I got a chance to talk to a smart guy about it!
create mode = 0700 use client driver = yes [print$] path = /var/lib/samba/drivers browseable = yes write list = @adm root
Why not using the dfault ntadmin group?
I should now, but there was no ntadmin in 2.0.2 ;-)
adm might be more generic I guess.
guest ok = yes inherit permissions = yes
What's the advantage of using "inherit permissions" at this point?
Dunno, the entire [print$] share was a new default that showed up (long long ago) and since I never hosted any server based drivers... I didn't do an exegesis on it :p
Well, I also can't see a potential damage. Maybe the same as with the adm group?
Lars
Other than deleting the redundant defaults, removing 'inherit permissions' from print$ and possibly moving the spool from /var/spool/samba to /var/tmp, you see anything else I should tweak or remove? Thanks for helping out with the smb.conf. I know I really only give it a look when something breaks or new defaults appear when I diff the new version against my existing. So I know it is in need of a once over. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org