Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-10 Thread Martin Zielinski

Hi!

The path to your drivers is not relevant.
When you connect from windows to your samba server, you are mapped 
(somehow) to a *nix user on the samba server.
This user needs access rights on the driver directory. That's the 
important thing. You can check this basic settings by typing on your 
windows machine: run - \\ip of your samba server\print$


Look, if you have access to the share. If you want to install drivers, 
you need write access to the share, too.


Regarding the Xerox printer:
The printer driver is missing the following threee entries in the 
printers registry:


[PrinterDriverData\PDMap-WorkCentre 7328]
RATEDSPEED=28;AUTO=GPIN\GPIN.auto;PDL=GPIN\GPIN.pdl;MARG=GPIN\GPIN.margins;XCAP=GPIN\GPIN.xcp;PMM=GPIN\GPIN.pmm;FAMPATH=GPIN;CONTROLLERFAMILY=G;COMPANYNAME=XC;PLATFORMVERSION=5.0;PRINTERLANG= 
PSCRIPT,PCL5,PCL6;COLORCAPABLE=Color;


[PrinterDriverData\xModelId]
WorkCentre 7328

[PrinterDriverData\xProdUID]
GPIN

With these registry entries the error message goes away. If the driver 
works, I can't test.


BTW: As far as I do understand it, you really want to do RAW printing. 
This means, that the job leaves the client computer completely rendered.

This is what you can do with samba.

Bye,

Martin


Peter Van den Wildenbergh schrieb:

Peter Van den Wildenbergh wrote:

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  
I've tried deleting ntprinters.tdb without improvement.



Hi Daniel,

I can only offer moral support, I got the same problem but no solution
(yet).
Samba 3.0.28a on Ubuntu 8.04 LTS with OpenLDAP slapd 2.4.9

I read through this :
http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2620623 



But no luck and I want to avoid the whole rpcclient thing.

somebody here
(http://lists.samba.org/archive/samba/2006-January/116695.html) 
pointed to

http://www.extremetech.com/article2/0,1697,1722545,00.asp
Not sure what it has to do with it but I tried deleting the task thing
(no change)
(It explained where the 2227a280-3aea-1069-a2de-08002b30309d key comes 
from)


Parts of my smb.conf:

[global]
load printers = yes
printcap name = cups
printing = cups


[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users
# Remove @Domain Users asap !!! Need printer setup working for Big
Xerox 7328 MFC


drwxrwxrwx 2 root Domain Admins  4096 2008-11-09 10:48 printers
(I will chmod this back to 775 ASAP)

The printer works in CUPS

root = part of Domain Admins
User root already member of the group Domain Admins.

What else did I do ?

Read
man 8 cupsaddsmb

Step 6 here fails:
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

rebooted everything one more time, to give it another try...

Posted this 'cry for help'  msg...

Do I need cupsaddsmb?
I do NOT use RAW printing.


Thanks


Peter







Alrighty then... I think I got it... almost (*)

changed in smb.conf section : [print$]

  path = /usr/share/cups/drivers
#   path = /var/lib/samba/printers


Just before this change I did this :

[EMAIL PROTECTED]:/usr/share/cups/drivers# mkdir w32x86/3 -p

Not sure if it is needed to make those 2 sub-directories but it 
certainly doesn't hurt


after going through the add printer procedure 5.17
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

I do an ls -l ... MAGIC


[EMAIL PROTECTED]:/usr/share/cups/drivers/w32x86/3# ls -l
total 18720
-rwxr--r-- 1 root root  728576 2007-05-22 05:29 PS5UI.DLL
-rwxr--r-- 1 root root  543232 2007-05-22 05:29 PSCRIPT5.DLL
-rwxr--r-- 1 root root   26038 2007-05-10 04:31 PSCRIPT.HLP
-rwxr--r-- 1 root root 1060548 2007-05-10 04:31 pscript.ntf
-rwxr--r-- 1 root root5561 2007-05-10 04:31 PS_SCHM.GDL
-rwxr--r-- 1 root root  742912 2008-03-06 13:25 x2comsB3.dll
-rwxr--r-- 1 root root 

Re: [Samba] Access Denied to Printers / Same thing here

2008-11-09 Thread Peter Van den Wildenbergh

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  I've 
tried deleting ntprinters.tdb without improvement.



Hi Daniel,

I can only offer moral support, I got the same problem but no solution
(yet).
Samba 3.0.28a on Ubuntu 8.04 LTS with OpenLDAP slapd 2.4.9

I read through this :
http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2620623

But no luck and I want to avoid the whole rpcclient thing.

somebody here
(http://lists.samba.org/archive/samba/2006-January/116695.html) pointed to
http://www.extremetech.com/article2/0,1697,1722545,00.asp
Not sure what it has to do with it but I tried deleting the task thing
(no change)
(It explained where the 2227a280-3aea-1069-a2de-08002b30309d key comes from)

Parts of my smb.conf:

[global]
load printers = yes
printcap name = cups
printing = cups


[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users
# Remove @Domain Users asap !!! Need printer setup working for Big
Xerox 7328 MFC


drwxrwxrwx 2 root Domain Admins  4096 2008-11-09 10:48 printers
(I will chmod this back to 775 ASAP)

The printer works in CUPS

root = part of Domain Admins
User root already member of the group Domain Admins.

What else did I do ?

Read
man 8 cupsaddsmb

Step 6 here fails:
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

rebooted everything one more time, to give it another try...

Posted this 'cry for help'  msg...

Do I need cupsaddsmb?
I do NOT use RAW printing.


Thanks


Peter






--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-09 Thread Peter Van den Wildenbergh

Peter Van den Wildenbergh wrote:

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  
I've tried deleting ntprinters.tdb without improvement.



Hi Daniel,

I can only offer moral support, I got the same problem but no solution
(yet).
Samba 3.0.28a on Ubuntu 8.04 LTS with OpenLDAP slapd 2.4.9

I read through this :
http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2620623 



But no luck and I want to avoid the whole rpcclient thing.

somebody here
(http://lists.samba.org/archive/samba/2006-January/116695.html) 
pointed to

http://www.extremetech.com/article2/0,1697,1722545,00.asp
Not sure what it has to do with it but I tried deleting the task thing
(no change)
(It explained where the 2227a280-3aea-1069-a2de-08002b30309d key comes 
from)


Parts of my smb.conf:

[global]
load printers = yes
printcap name = cups
printing = cups


[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
  write list = root, @Domain Admins, @Domain Users
# Remove @Domain Users asap !!! Need printer setup working for Big
Xerox 7328 MFC


drwxrwxrwx 2 root Domain Admins  4096 2008-11-09 10:48 printers
(I will chmod this back to 775 ASAP)

The printer works in CUPS

root = part of Domain Admins
User root already member of the group Domain Admins.

What else did I do ?

Read
man 8 cupsaddsmb

Step 6 here fails:
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

rebooted everything one more time, to give it another try...

Posted this 'cry for help'  msg...

Do I need cupsaddsmb?
I do NOT use RAW printing.


Thanks


Peter







Alrighty then... I think I got it... almost (*)

changed in smb.conf section : [print$]

  path = /usr/share/cups/drivers
#   path = /var/lib/samba/printers


Just before this change I did this :

[EMAIL PROTECTED]:/usr/share/cups/drivers# mkdir w32x86/3 -p

Not sure if it is needed to make those 2 sub-directories but it 
certainly doesn't hurt


after going through the add printer procedure 5.17
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750

I do an ls -l ... MAGIC


[EMAIL PROTECTED]:/usr/share/cups/drivers/w32x86/3# ls -l
total 18720
-rwxr--r-- 1 root root  728576 2007-05-22 05:29 PS5UI.DLL
-rwxr--r-- 1 root root  543232 2007-05-22 05:29 PSCRIPT5.DLL
-rwxr--r-- 1 root root   26038 2007-05-10 04:31 PSCRIPT.HLP
-rwxr--r-- 1 root root 1060548 2007-05-10 04:31 pscript.ntf
-rwxr--r-- 1 root root5561 2007-05-10 04:31 PS_SCHM.GDL
-rwxr--r-- 1 root root  742912 2008-03-06 13:25 x2comsB3.dll
-rwxr--r-- 1 root root 4605440 2008-03-06 13:25 x2coreB3.dll
-rwxr--r-- 1 root root  256000 2008-03-06 13:24 x2fpb02.exe
-rwxr--r-- 1 root root   31744 2008-03-06 13:15 x2fpd02.dll
-rwxr--r-- 1 root root  190753 2007-03-06 11:48 x2gp01p.chm
...



I kind'a understand what is going on but not completely...

Let me tell you does guys from the SaMBa team are geniuses... !
(Reverse engineering the winBlows crap and have it work with LDAP, CUPS 
 Co... JUST AWESOME !!!


No the (*) almost part.
When right-clicking on the printer and selecting properties I get an 
error window titled : Xerox Printer Driver
An unexpected error occurred in the print driver. Close the current 
driver window and retry the operation.

OK

Clicking Ok gives me the properties, however those are in read-only mode.

Somebody help us here?



Regards

Peter

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Access Denied to Printers / Same thing here

2008-11-09 Thread Daniel L. Miller

Peter Van den Wildenbergh wrote:

Daniel L. Miller wrote:

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  
Is it possible there's something hiding in a corrupted tdb file?  
I've tried deleting ntprinters.tdb without improvement.


Is the case of the filenames in /usr/share/cups/drivers and 
/var/lib/samba/printers significant?


--
Daniel
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-09 Thread Michael Heydon


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:



Alrighty then... I think I got it... almost (*)

changed in smb.conf section : [print$]

  path = /usr/share/cups/drivers
#   path = /var/lib/samba/printers


You are getting close :)

It is a driver related issue, you can either install windows drivers 
onto the samba server. This has the benefit of when ever you add the 
printer to a client the drivers will be installed automagically.


If you are just after a quick fix, just add use client driver = yes to 
your global section. This will get rid of the error, which is pretty 
much harmless anyway.


*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Access Denied to Printers / Same thing here - SOLVED once (*almost)

2008-11-09 Thread Peter Van den Wildenbergh

Michael Heydon wrote:


You are getting close :)

But not close enough yet...


It is a driver related issue, you can either install windows drivers 
onto the samba server. This has the benefit of when ever you add the 
printer to a client the drivers will be installed automagically.
That's the part I solved (partually because I cannot change any settings 
from a client XP)


If you are just after a quick fix, just add use client driver = yes 
to your global section. This will get rid of the error, which is 
pretty much harmless anyway.
Will try that tomorrow. I tried a couple things after my last post, the 
driver is 'loaded' automagically with the log-in script.
(WSHNetwork.AddWindowsPrinterConnection \\Server\Xerox7328 picked from: 
http://www.tek-tips.com/faqs.cfm?fid=5798 )


WORD however is doing weird.
I cannot change the paper-size (paper-size = something 'custom', which 
happen to be the same as 'letter')


I've the feeling that if I can change the setting in the driver from a 
cient XP, that word will be able to pick up all available paper formats 
too...


I hope I don't have to revert to RAW after all this. On the other hand 
things have to work on Wednesday...


Regards

Peter
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Access Denied to Printers

2008-11-07 Thread Daniel L. Miller

Hi!

Trying to trace down a problem with printer sharing.  I don't see 
anything glaringly obvious with my smb.conf.  I am using LDAP and CUPS.


Using a Windoze client, accessing a printer I receive the friendly 
Access denied, unable to connect.  Checking the Samba logs, I find:


[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] param/loadparm.c:process_usershare_file(8268)
 process_usershare_file: share name 
::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters 
(any of %*?|/\+=;:,)

[2008/11/07 18:26:08,  0] smbd/service.c:make_connection(1362)
 daniel (192.168.0.60) couldn't find service 
::{2227a280-3aea-1069-a2de-08002b30309d}


I don't HAVE any shares with invalid characters - that I'm aware of.  Is 
it possible there's something hiding in a corrupted tdb file?  I've 
tried deleting ntprinters.tdb without improvement.

--
Daniel
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] access denied to printers

2003-08-09 Thread Raymond Norton
I have a working color laser printer configured on red hat 9. I have created
a share in my smb.conf . The printer shows up, but I get access denied,
unable to connect. Here is what I have in my config. Any ideas what is
wrong?

[printers]

path = /usr/spool/public

guest ok = Yes

printable = Yes

browseable = yes



[hp4500]

path = /usr/spool/public

read only = No

guest ok = Yes

printable = Yes

printer name = hp4500

oplocks = No

Raymond Norton


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba