LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Sharing Printer with Samba (https://www.linuxquestions.org/questions/slackware-14/sharing-printer-with-samba-58014/)

ritris 05-03-2003 07:07 PM

Sharing Printer with Samba
 
Hi...

I've installed Slackware 9 with Samba 2.28a on my server. I configured the "file sharing" and it's working fine... but my WinXP client can't print at the server printer. When I add the printer on the client, the printer status is "Ready"... but when a send something to the printer, the status changes to "Access Denied - It's not possible to connect..." even when it's defined public access (guest account) to the printer... :mad:
From the server, I can print normally.... Could anyone help ??? :confused:

This is my SMB.CONF

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2003/05/03 15:19:55

# Global parameters
[global]
log file = /var/log/samba.%m
dns proxy = No
load printers = yes
server string = Samba Server
printing = lprng
workgroup = MSHOME
username map = /etc/samba/user.map
security = SHARE
max log size = 50
ssl ca certdir = /etc/ssl/certs

[homes]
comment = Home Directories
read only = No
browseable = No

[public]
comment = Public Stuff
path = /home/ftp
read only = No
guest only = No
guest ok = Yes

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

Thanks !!! :)

Excalibur 05-03-2003 07:16 PM

Check the permissions on /var/spool/samba. According to your smb.conf that is the spool directory where the job would be queued. Try "chmod 766 /var/spool/samba" and see if that allows the print jobs to be queued. It is probably providing a default user level of "nobody".

fskmh 05-05-2003 06:41 AM

In reference to the [public] entry, I would say add "create mask=0700".

ritris 05-06-2003 08:24 PM

Hi....

Doing the "chmod 766 /var/spool/samba" doesn't work... :(

Any other ideia ?!?!?

Thanks !!!


Quote:

Originally posted by Excalibur
Check the permissions on /var/spool/samba. According to your smb.conf that is the spool directory where the job would be queued. Try "chmod 766 /var/spool/samba" and see if that allows the print jobs to be queued. It is probably providing a default user level of "nobody".

Excalibur 05-06-2003 09:15 PM

Have you checked to see if the directory exists?

ritris 05-08-2003 09:47 PM

Yes... the directory exists...


Quote:

Originally posted by Excalibur
Have you checked to see if the directory exists?

Excalibur 05-09-2003 07:39 AM

Well, then you could try adding "guest account = root" and restart samba. If the printing is allowed then it is a permsision issue, if not then it is a config or security with Samba/Win2K issue. Once the issue is resolved you should remove the setting though for security purposes, especially if the Linux box has a direct internet gateway.

jtshaw 05-09-2003 12:15 PM

Along similar lines, what exactly am I suppose to use as a driver on the windows end to talk to my cups printer?

Basically, I run vmware on my computer and I have my Deskjet 720C installed through cups. If I want to print anything from vmware (really the only reason why I have it is professors that give me special word files that open office can't open) having it take over control of the parrellel port cause cups to stop working and windows wasn't printing anymore. So I decided to share the printer though Samba.

Anyway, the share is there but all the documentation refers to using one of two drivers, either the adobe driver (which doesn't work) or the real driver for the printer which also doesn't seam to work. Is there some special switch I have to add to have samba/cups pass in the data raw directly to the printer so I can use the conventional windows driver for the HP 720C?

Excalibur 05-09-2003 09:40 PM

You might try just setting up a special queue for sharing through SMB. When you set it up in CUPS use the "raw" device driver on the port.

There is a switch for raw output when using the linux command parameters like "-oraw". I primarily use this option when printing photos from gimp.


All times are GMT -5. The time now is 07:06 PM.