LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-15-2003, 08:10 AM   #1
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Rep: Reputation: 0
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 ?

Last edited by MobbyDick; 07-15-2003 at 08:11 AM.
 
Old 07-15-2003, 09:23 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Your printer share needs the printable option, without it, Samba thinks it is a disk share.
printable = yes
 
Old 07-15-2003, 10:29 AM   #3
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
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 ?
 
Old 07-16-2003, 01:42 AM   #4
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
No more help available ? Has no one had this problem bevor ?
 
Old 07-16-2003, 02:50 AM   #5
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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.
 
Old 07-16-2003, 10:08 AM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Oh
...
Didn't see it all the way down there.

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
 
Old 07-16-2003, 10:20 AM   #7
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks a lot ! I will try this and report if it worked.
 
Old 07-16-2003, 10:31 AM   #8
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 07-16-2003, 10:31 AM   #9
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
Hmm, I am using a Samsung ML-4500, and i am still having the same problem...
 
Old 07-16-2003, 10:41 AM   #10
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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
 
Old 07-16-2003, 10:43 AM   #11
MobbyDick
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE Linux 8.2
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 07-16-2003, 10:54 AM   #12
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Lightbulb 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.
 
Old 07-16-2003, 11:07 AM   #13
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
Gonna try that...
 
Old 07-16-2003, 11:19 AM   #14
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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
 
Old 07-16-2003, 11:27 AM   #15
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
What am i missing? Help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change access permissions on Samba share from win2k? TongueTied Linux - Software 2 03-25-2011 02:28 PM
Can't access my linux share through samba. I get permission denied. mlsbraves Linux - Software 1 08-16-2005 07:59 PM
Very stupid, but here we go: pam_mount + samba share = access denied? Thakowbbery Linux - Software 8 05-23-2005 10:43 AM
change access permissions on Samba share from win2k? TongueTied Linux - Software 1 08-27-2003 04:00 PM
access is denied : samba PDC, win2k client dkodegwc Linux - Networking 6 12-14-2002 11:02 AM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration