I'm testing a printserver with Samab/ Cups. Every time I want to upload the driver to samba for printing I get the following error: "Printer settings could not be saves. Access denied" I chmod 777 the driver directory and spool directory. I gave specified the user as printer admin in the share. My firewall is disabled. Why is it still giving me the access denied error? Best Regards, Roland de Lepper ------------------------------
Hi Roland I recently had the same horrible nightmare ;) Please do not ask me for any raesons but try the following: Change the permissions of the driver-files on your windows-system. Remove any write protection. Then try to upload again. Good luck! Denis ------------------------------------ W-SYS, IT- & Medienservice G?ttingen ------------------------------------ T: 0551 - 20 19 834 F: 0551 - 37 06 983 W: http://www.w-sys.info ------------------------------------ Roland_Lepper@Liteonit.com schrieb:> > > > I'm testing a printserver with Samab/ Cups. > > Every time I want to upload the driver to samba for printing I get the following error: > > "Printer settings could not be saves. Access denied" > > I chmod 777 the driver directory and spool directory. > I gave specified the user as printer admin in the share. > My firewall is disabled. > > Why is it still giving me the access denied error? > > Best Regards, > Roland de Lepper > ------------------------------ >
Hi denis, Thnaks...this worked, but now I have the problem that I cannot connect to the printer. "Access denied, unable to connect" Best Regards, Roland de Lepper ------------------------------ Denis Wollenhaupt <dwollen@gwdg.de> To: Roland_Lepper@Liteonit.com cc: 09/03/2007 13:42 Subject: Re: [Samba] printing problem Hi Roland I recently had the same horrible nightmare ;) Please do not ask meabout any raesons but try the following: Change the permissions of the driver-files on your windows-system. Remove any write protection. Then try to upload again. Good luck! Denis ------------------------------------ W-SYS, IT- & Medienservice G?ttingen ------------------------------------ T: 0551 - 20 19 834 F: 0551 - 37 06 983 W: http://www.w-sys.info ------------------------------------ Roland_Lepper@Liteonit.com schrieb:> > > > I'm testing a printserver with Samab/ Cups. > > Every time I want to upload the driver to samba for printing I get the following error: > > "Printer settings could not be saves. Access denied" > > I chmod 777 the driver directory and spool directory. > I gave specified the user as printer admin in the share. > My firewall is disabled. > > Why is it still giving me the access denied error? > > Best Regards, > Roland de Lepper > ------------------------------ >
Hi again So I would check ther perms the used directories (eg. tmp-dir /vat/spool/cups/tmp) ------------------------------------ W-SYS, IT- & Medienservice G?ttingen ------------------------------------ T: 0551 - 20 19 834 F: 0551 - 37 06 983 W: http://www.w-sys.info ------------------------------------ Roland_Lepper@Liteonit.com schrieb:> Hi denis, > Thnaks...this worked, but now I have the problem that I cannot connect to the printer. > "Access denied, unable to connect"
Hi Roland I recently had the same horrible nightmare ;) Please do not ask meabout any raesons but try the following: Change the permissions of the driver-files on your windows-system. Remove any write protection. Then try to upload again. Good luck! Denis ------------------------------------ W-SYS, IT- & Medienservice G?ttingen ------------------------------------ T: 0551 - 20 19 834 F: 0551 - 37 06 983 W: http://www.w-sys.info ------------------------------------ Roland_Lepper@Liteonit.com schrieb:> > > > I'm testing a printserver with Samab/ Cups. > > Every time I want to upload the driver to samba for printing I get the following error: > > "Printer settings could not be saves. Access denied" > > I chmod 777 the driver directory and spool directory. > I gave specified the user as printer admin in the share. > My firewall is disabled. > > Why is it still giving me the access denied error? > > Best Regards, > Roland de Lepper > ------------------------------ >
Roland_Lepper@Liteonit.com schrieb:> > I'm testing a printserver with Samab/ Cups. > > Every time I want to upload the driver to samba for printing I get the following error: > > "Printer settings could not be saves. Access denied" > > I chmod 777 the driver directory and spool directory. > I gave specified the user as printer admin in the share. > My firewall is disabled. > > Why is it still giving me the access denied error? >Possible reasons: 1) The driver wants to do some initialization which fails. So: which driver? 2) Your might be using and old and buggy samba version. 3) You have no "W32X86" directory in your driver directory 4) You "printer admin" authentication fails for some reason ... The first thing I'll allways suggest is to call "Start->Run" from your windows menu and enter "\\your samba server\print$". Change into the W32X86 directory and try to create a file or folder. If this fails, you have an authentication or unix rights issue. Otherwise you'll have to go further with more details. Regards, Martin -- Martin Zielinski mz@seh.de Software Development SEH Computertechnik GmbH www.seh.de
sorry, but the driver upload didn't worked either. I thought it worked, but it was the local driver that was installed and not the one on the printserver. This is really a nightmare. Best Regards, Roland de Lepper ------------------------------ Senior MIS engineer. Lite-On IT BV Meerenakkerplein 16 5652 BJ Eindhoven The Netherlands E-Mail : roland_lepper@liteonit.com Tel : +31-(0)40-2508086 Denis Wollenhaupt <dwollen@gwdg.de> To: Roland_Lepper@Liteonit.com cc: samba@lists.samba.org 09/03/2007 14:03 Subject: Re: [Samba] printing problem Hi again So I would check ther perms the used directories (eg. tmp-dir /vat/spool/cups/tmp) ------------------------------------ W-SYS, IT- & Medienservice G?ttingen ------------------------------------ T: 0551 - 20 19 834 F: 0551 - 37 06 983 W: http://www.w-sys.info ------------------------------------ Roland_Lepper@Liteonit.com schrieb:> Hi denis, > Thnaks...this worked, but now I have the problem that I cannot connect to the printer. > "Access denied, unable to connect"
Hi Martin, 1) driver is a HP laserjet 1300n with a jet directcard 2) samba version = 3.0.20.4 3) I have a W32X86 directory in my driver directory and can add new folders to it 4) sorry...cannot check this. smb.conf [global] workgroup = LITEONIT.COM netbios name = NLHOL1F1 security = domain winbind use default domain = Yes password server = 192.168.0.1 hosts allow = 192.168.0.0/24 127.0.0.0/8 os level = 50 encrypt passwords = Yes idmap uid = 15000-20000 idmap gid = 15000-20000 wins support = Yes winbind separator = + winbind enum users = Yes winbind enum groups = Yes logfile = /var/log/samba/log.%m socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printing = cups use client driver = yes load printers = yes printcap name = /etc/printcap printer admin = root LITEONIT.COM+Roland_deLepper max print jobs = 100 lpq cache time = 20 show add printer wizard = yes print command = lpr -r -P %p %s [printers] comment = all printers printable = yes admin users = @domainadmins LITEONIT.COM+Roland_deLepper path = /var/spool/samba guest ok = yes printer admin = LITEONIT.COM+Roland_deLepper show add printer wizard = yes [print$] comment = printer download section path = /etc/samba/drivers browseable = yes guest ok = yes write list = @domainadmins read only = no [lj1300n] comment = HP Laserjet 1300n path = /var/spool/samba/lj1300n printable = yes guest ok = yes writable = yes printer admin = LITEONIT.COM+Roland_deLepper use client driver = yes Best Regards, Roland de Lepper ------------------------------ Martin Zielinski <mz@seh.de> To: Roland_Lepper@Liteonit.com cc: samba@lists.samba.org 09/03/2007 14:11 Subject: Re: [Samba] printing problem Roland_Lepper@Liteonit.com schrieb:> > I'm testing a printserver with Samab/ Cups. > > Every time I want to upload the driver to samba for printing I get the following error: > > "Printer settings could not be saves. Access denied" > > I chmod 777 the driver directory and spool directory. > I gave specified the user as printer admin in the share. > My firewall is disabled. > > Why is it still giving me the access denied error? >Possible reasons: 1) The driver wants to do some initialization which fails. So: which driver? 2) Your might be using and old and buggy samba version. 3) You have no "W32X86" directory in your driver directory 4) You "printer admin" authentication fails for some reason ... The first thing I'll allways suggest is to call "Start->Run" from your windows menu and enter "\\your samba server\print$". Change into the W32X86 directory and try to create a file or folder. If this fails, you have an authentication or unix rights issue. Otherwise you'll have to go further with more details. Regards, Martin -- Martin Zielinski mz@seh.de Software Development SEH Computertechnik GmbH www.seh.de
Hi Martin, thanks...this worked. But...the next problem arise. The driver is uploaded to the server now. This is good. I connected to the prinbter via start-settings-printers and added the printer as available printer from my printserver. This all went ok, but when I want to print, the print doesn't come out en I see the following error message in my logs: " ERROR: string overflow by 1 (256 - 255) in safe_strcpy (NT_STATUS_DISK_FULL opening remote spool smbprn_00)" I'm admin on the windows box (domain admin) Best Regards, Roland de Lepper ------------------------------ Martin Zielinski <mz@seh.de> To: Roland_Lepper@Liteonit.com cc: samba@lists.samba.org 09/03/2007 14:52 Subject: Re: [Samba] printing problem Hi, I put comments inline. Roland_Lepper@Liteonit.com schrieb:> > > > Hi Martin, > > 1) driver is a HP laserjet 1300n with a jet directcard > 2) samba version = 3.0.20.4 > 3) I have a W32X86 directory in my driver directory and can add new folders to it > 4) sorry...cannot check this. > > smb.conf > > [global] > workgroup = LITEONIT.COM > netbios name = NLHOL1F1 > security = domain > winbind use default domain = Yes > password server = 192.168.0.1 > hosts allow = 192.168.0.0/24 127.0.0.0/8 > os level = 50 > encrypt passwords = Yes > idmap uid = 15000-20000 > idmap gid = 15000-20000 > wins support = Yes > winbind separator = + > winbind enum users = Yes > winbind enum groups = Yes > logfile = /var/log/samba/log.%m > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > printing = cups > use client driver = yes^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That's exactly what you *don't* want to do. Please remove this line and try again.> load printers = yes > printcap name = /etc/printcap > printer admin = root LITEONIT.COM+Roland_deLepper > max print jobs = 100 > lpq cache time = 20 > show add printer wizard = yes > print command = lpr -r -P %p %s[...]> > [printers] > comment = all printers > printable = yes > admin users = @domainadmins LITEONIT.COM+Roland_deLepper > path = /var/spool/samba > guest ok = yes > printer admin = LITEONIT.COM+Roland_deLepper^^^^^^^^^^^^^^^^^^^^^^^^^^ This is a global parameter.> show add printer wizard = yes > > [print$] > comment = printer download section > path = /etc/samba/drivers > browseable = yes > guest ok = yes > write list = @domainadmins^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I'm really not shure about this, but you might add LITEONIT.COM+Roland_deLepper here, allthough> read only = no^^^^^^^^^^^^^^^ might make the "write list" obsolete.> > [lj1300n] > comment = HP Laserjet 1300n > path = /var/spool/samba/lj1300n > printable = yes > guest ok = yes > writable = yes > printer admin = LITEONIT.COM+Roland_deLepper > use client driver = yes^^^^^^^^^^^^^^^^^^^^^^^^^^^ Please remove. BTW it's a global parameter, too.> > Best Regards, > Roland de Lepper > ------------------------------ > >[...] Hope that helps. Regards, Martin -- Martin Zielinski mz@seh.de Software Development SEH Computertechnik GmbH www.seh.de
Hi Martin, Denis, Finally it all works. Print came not out because i configured cups wrong. Thanks for your help Best Regards, Roland de Lepper ------------------------------ Roland_Lepper@Liteonit.com Sent by: To: Martin Zielinski <mz@seh.de> samba-bounces+roland_lepper=liteonit.com@list cc: samba@lists.samba.org s.samba.org Subject: Re: [Samba] printing problem 09/03/2007 15:35 Hi Martin, thanks...this worked. But...the next problem arise. The driver is uploaded to the server now. This is good. I connected to the prinbter via start-settings-printers and added the printer as available printer from my printserver. This all went ok, but when I want to print, the print doesn't come out en I see the following error message in my logs: " ERROR: string overflow by 1 (256 - 255) in safe_strcpy (NT_STATUS_DISK_FULL opening remote spool smbprn_00)" I'm admin on the windows box (domain admin) Best Regards, Roland de Lepper ------------------------------ Martin Zielinski <mz@seh.de> To: Roland_Lepper@Liteonit.com cc: samba@lists.samba.org 09/03/2007 14:52 Subject: Re: [Samba] printing problem Hi, I put comments inline. Roland_Lepper@Liteonit.com schrieb:> > > > Hi Martin, > > 1) driver is a HP laserjet 1300n with a jet directcard > 2) samba version = 3.0.20.4 > 3) I have a W32X86 directory in my driver directory and can add new folders to it > 4) sorry...cannot check this. > > smb.conf > > [global] > workgroup = LITEONIT.COM > netbios name = NLHOL1F1 > security = domain > winbind use default domain = Yes > password server = 192.168.0.1 > hosts allow = 192.168.0.0/24 127.0.0.0/8 > os level = 50 > encrypt passwords = Yes > idmap uid = 15000-20000 > idmap gid = 15000-20000 > wins support = Yes > winbind separator = + > winbind enum users = Yes > winbind enum groups = Yes > logfile = /var/log/samba/log.%m > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > printing = cups > use client driver = yes^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That's exactly what you *don't* want to do. Please remove this line and try again.> load printers = yes > printcap name = /etc/printcap > printer admin = root LITEONIT.COM+Roland_deLepper > max print jobs = 100 > lpq cache time = 20 > show add printer wizard = yes > print command = lpr -r -P %p %s[...]> > [printers] > comment = all printers > printable = yes > admin users = @domainadmins LITEONIT.COM+Roland_deLepper > path = /var/spool/samba > guest ok = yes > printer admin = LITEONIT.COM+Roland_deLepper^^^^^^^^^^^^^^^^^^^^^^^^^^ This is a global parameter.> show add printer wizard = yes > > [print$] > comment = printer download section > path = /etc/samba/drivers > browseable = yes > guest ok = yes > write list = @domainadmins^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I'm really not shure about this, but you might add LITEONIT.COM+Roland_deLepper here, allthough> read only = no^^^^^^^^^^^^^^^ might make the "write list" obsolete.> > [lj1300n] > comment = HP Laserjet 1300n > path = /var/spool/samba/lj1300n > printable = yes > guest ok = yes > writable = yes > printer admin = LITEONIT.COM+Roland_deLepper > use client driver = yes^^^^^^^^^^^^^^^^^^^^^^^^^^^ Please remove. BTW it's a global parameter, too.> > Best Regards, > Roland de Lepper > ------------------------------ > >[...] Hope that helps. Regards, Martin -- Martin Zielinski mz@seh.de Software Development SEH Computertechnik GmbH www.seh.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba