LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2003, 07:54 AM   #1
baz2
Member
 
Registered: Nov 2002
Posts: 73

Rep: Reputation: 15
CUPS/SAMBA Printer Server for Windows Problem


I am trying to configure a server running RH9 as a print server for an NT domain. I've got it working, but not quite the way I want.

Samba is configured for CUPS printing. I've used cupsaddsmb to enable automatic download of the Windows drivers when Windows users run the Add Printer wizard. But this only works if the Windows user also has a linux account on the linux server. If not, Windows users can find the printer share when browsing the network with the Add Printer wizard, but the drivers are not automatically downloaded; they are prompted to install the drivers.

I think this may be because I'm using security=domain in my Samba configuration. Is there a permission setting for my smb.conf that would open the printer share up to users that do not have linux accounts? Is there a samba account I need to create? (With security=domain, I don't create samba accounts, I just create linux accounts.) I've set my smb.conf up exactly as described in the cupsaddsmb man page:


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

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = root

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root


I confess to notunderstanding entirely how these settings effect permissions. Is "guest" in linux equivalent to "everyone" in Windows? Do I need to create a guest samba account?

TIA for any insights.

Last edited by baz2; 11-15-2003 at 08:49 AM.
 
Old 11-15-2003, 04:53 PM   #2
sidmark-2850
Member
 
Registered: Aug 2003
Posts: 133

Rep: Reputation: 15
From a user that does not have a linux account on the samba server, go to windows explorer and open up \\Server\Print$. If you can't go there, you may want to put the guest ok = yes. Make sure the files are world readable and the directories world executable. You can configure the share like

[print$]
comment = Printer Drivers
path = /etc/samba/drivers
browseable = no
guest ok = yes
read only = yes
write list = root
create mask = 0664
security mask = 0664
directory mask = 2775
directory security mask = 2775


The masks make all files and directories that you upload via the APW world readable.

Hope this helps.
 
Old 11-16-2003, 06:52 AM   #3
baz2
Member
 
Registered: Nov 2002
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks! I'll give that a whirl on Monday, and let you know if it works.
 
Old 11-18-2003, 07:01 AM   #4
baz2
Member
 
Registered: Nov 2002
Posts: 73

Original Poster
Rep: Reputation: 15
The solution was as simple as "guest ok=yes." I don't know why I didn't think of that. Thanks!
 
  


Reply



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
Cant print using samba and cups to a windows printer araldit Linux - Networking 5 11-27-2007 09:21 PM
Help with printing to Windows printer with cups and samba. Royle Linux - Networking 3 01-23-2005 12:16 PM
setting up a printer with cups on RH7 for windows with samba TreeHugger Linux - Networking 2 11-11-2004 11:31 AM
share name not found Windows Samba printer CUPS jjge Linux - Software 1 08-04-2004 09:14 AM
How to connect Windows printer (cups+Samba)? Waldi Slackware 8 08-31-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration