LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba Printer Share on Win2K Access Denied, No Connection available (https://www.linuxquestions.org/questions/linux-software-2/samba-printer-share-on-win2k-access-denied-no-connection-available-72895/)

MobbyDick 07-15-2003 09:10 AM

Samba Printer Share on Win2K Access Denied, No Connection available
 
Hallo,

I have a problem with Samba printer Share and printing from a Win2k client.
Printing works from the Linux Server but not on the client. The Printer is an OKI610ex and I use the CUPS Printing System. I can see the printer share on the win client an I can install it as a new printer. When I click on the printer icon, I get the message: Access denied, No connection available.

My smb.conf is as following:

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/04/07 23:02:10

# Global parameters
[global]
printer = oki610ex
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
encrypt passwords = Yes
time server = Yes
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
unix extensions = Yes
netbios name = SAUGI
writable = yes
printing = cups
path = /var/spool/cups
default service = MP3
workgroup = HOUSENET
os level = 2
printcap name = CUPS
syslog = 0
security = SHARE
log level = 1

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[sonst]
force user = XY
delete readonly = Yes
strict sync = Yes
sync always = Yes

[mp3]
force user = Kris
valid users = XY,Kris,Sardi
delete readonly = Yes
path = /home/mp3







[oki610ex]
comment = hp4p emulation
printable = yes

My System is SuSE Linux 8.2, Samba 2.2.7a-72.

Does anyone have a solution for this problem ?

Mathieu 07-15-2003 10:23 AM

Your printer share needs the printable option, without it, Samba thinks it is a disk share.
printable = yes

MobbyDick 07-15-2003 11:29 AM

But my printershare is:
[oki610ex]

at the bottom of the config file and there is a "printable=yes" entry.

Or do you mean the [print$] entry ?

MobbyDick 07-16-2003 02:42 AM

No more help available ? Has no one had this problem bevor ?

pnh73 07-16-2003 03:50 AM

Ive got this problem as well. Im using winXP pro, and my Samba server is running on a Red Hat Box. But I dont know how to fix it. I have tryed doing the configuration with Webmin (www.webmin.com) but i havent been able to solve it.

Mathieu 07-16-2003 11:08 AM

Oh :rolleyes:
...
Didn't see it all the way down there.:D

You forgot the path = option. Samba needs to store the file before it can print it.
Also, you may want to add writable = no for security reasons.

So your share should look like this.
Code:

[oki610ex]
comment = hp4p emulation
printable = yes
path = /var/spool/samba
writable = no


MobbyDick 07-16-2003 11:20 AM

Thanks a lot ! I will try this and report if it worked.

MobbyDick 07-16-2003 11:31 AM

Ok, I tried it, but it didnīt work. I still get the "Access denied" and when I try to start a printjob I get the Message: "Print job could not be started".
I also tried to configure the printershare with webmin and SWAT, but I had no success.

pnh73 07-16-2003 11:31 AM

Hmm, I am using a Samsung ML-4500, and i am still having the same problem...

pnh73 07-16-2003 11:41 AM

Hmmm, now i have the following config:


# Samba config file created using SWAT
# from localhost.UU.NET (127.0.0.1)
# Date: 2003/07/16 16:24:19

# Global parameters
[global]
workgroup = MSHOME
netbios name = WEBSERVER
server string = RH8 Server
security = SHARE
null passwords = Yes
obey pam restrictions = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
printing = cups

[laser]
comment = Samsung ML-4500 Printer
path = /var/spool/samba
guest ok = Yes
printable = Yes
printer name = laser
use client driver = Yes

And it just freezes and says "Initializing" on the queue

MobbyDick 07-16-2003 11:43 AM

OK for all who have this problem, maybe this helps you. Finaly I got a solution for my one.
I changed the path to: path = /var/spool/lp
this is the same printingqueu Linux installed the printer for.
Then I made a chmod 777 to the lpd directory and now it works fine. I can print and I donīt get the access denied message anymore. Hope it works for the others, too.

By.

Mathieu 07-16-2003 11:54 AM

That's it
 
Very good.

Like I mentioned in the previous post,
Samba needs to store the file (printed document) before it can print it.

Most likely, the directory permissions prevented Samba from writting the files to disk.

pnh73 07-16-2003 12:07 PM

Gonna try that...

pnh73 07-16-2003 12:19 PM

ARGGGG

Its still not working! I still get Access Denied!!!

this is my config file:


[global]
workgroup = MSHOME
netbios name = WEBSERVER
server string = RH8 Server
security = SHARE
null passwords = Yes
obey pam restrictions = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
printing = cups

[laser]
comment = Samsung ML-4500 Printer
path = /var/spool/lpd
guest ok = Yes
printable = Yes

When you say the same 'printingqueue' ... how to i find the path to it?

Paul

pnh73 07-16-2003 12:27 PM

What am i missing? Help!


All times are GMT -5. The time now is 12:52 PM.