Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cups and Samba
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Mon Apr 15, 2002 4:08 am    Post subject: Cups and Samba Reply with quote

Searching Google, it seems that this problem isn't uncommon. I followed the steps in the desktop user guide. Installed Samba--it works fine as far as file sharing, the Win98 and Win2k box can access the user's files on the Gentoo box.

Cups works, I can print locally.

I can add a printer from either the Win98 or Win2k box--however, if I try to print I get access denied.

Various solutions that I tried, without joy, from google.
Creating a /var/samba/spool file and giving it 0777 permissions.
Uncommenting hosts allow for the LAN
Uncommenting guest ok in the printer section
Flushing iptables

No joy.

One person posted on deja a very similar problem, with similar lack of success--then, posted, ah, fixed it--gee, I should have posted this last week I don't remember how I did. :) Sigh. Wish he'd remembered.

Thanks
Scott
Back to top
View user's profile Send private message
gschneider
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 81
Location: Darmstadt, Germany

PostPosted: Mon Apr 15, 2002 5:39 am    Post subject: Reply with quote

is the cupsd launched before smb at startup?
somebody proposed this some time ago in teh mailing list,
and i think it was changed lately....
_________________
/(bb|[^b]{2})/
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Mon Apr 15, 2002 4:08 pm    Post subject: Reply with quote

No, that wasn't it. I actually start both manually, so tried both ways--starting cups first then starting Samba first.

For the heck of it, I then set it up in RH--RH gave me the same access denied error, however, printed without problem (another issue that I found on deja while researching my own problem)

Thanks

Scott
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Apr 16, 2002 12:14 am    Post subject: Reply with quote

just to check, is /var/spool/samba the one that is defined in your /etc/samba/smb.conf? I believe the default was somewhere in /usr for me and the directory wasnt even there so i created /var/spool/samba, set appropriate permissions and changed the smb.conf and was able to print fine.
also make sure the print command is the right one, i use
lpr -P %p -o raw %s -r
so that the printer uses the drivers for windows and sends raw info to be processed by the printer
Back to top
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Tue Apr 16, 2002 1:13 am    Post subject: Reply with quote

Like you, it was /usr something---I tried making a directory there too--right now, I'm in Windows (doing something else) and might not get a chance to play with it tonight--however, I have the feeling there's no printer command in there.

So, I will give that a shot in the next day or so and see what happens.

Thanks much

Scott
Back to top
View user's profile Send private message
scottro
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2002
Posts: 141
Location: New York City

PostPosted: Tue Apr 16, 2002 1:32 am    Post subject: Reply with quote

Darn. That didn't work either I'm afraid (that is changing it to /var/spool/samba and adding the print command.

Sigh.

I'll get it working sooner or later--the aggravating thing is that I suspect it's something obvious that I'm missing--I've decided that if I go to the mailing lists with this one, I'll go to gentoo-newbies rather than users. :)

Scott
Back to top
View user's profile Send private message
piuw
n00b
n00b


Joined: 17 Apr 2002
Posts: 5
Location: Belgium

PostPosted: Wed Apr 24, 2002 6:35 am    Post subject: Cups samba Reply with quote

Are you trying to make your printer public? If so maybe you can set up the printer with 'guest ok' & sharing on 'share level' instead of on 'user level'. You can do this with two clicks of a mouse in a browser window with swat. I don't mess about in the conf file I just make changes thanks to swat, because I'm a lazy bugger.

I have a similar problem. I add my printer in win but when I want to print he tells me the thing is offline or it doesn't exist while I can see it fine in the network neighbourhood window.
Anyway I'll mess about with it some more and maybe I'll find the solution.

If I figure it out I'll tell you ;-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum