LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba printer help(can see and have access to printer but nothign prints out) (http://www.linuxquestions.org/questions/linux-networking-3/samba-printer-help-can-see-and-have-access-to-printer-but-nothign-prints-out-112476/)

rmanocha 11-04-2003 08:28 PM

Samba printer help(can see and have access to printer but nothign prints out)
 
hey,
I have recently joined a company and i was asked to correct their smb.conf(we are using Red Hat 9.0) file since the printer they have is being seen in Win 2K and it does not even say that permssion is denied but when i try to print a test page...it does not print out anything. The windows machines shows the document as gone to the printer but nothign is being printed out. also when i open up the printer queue in the win 2k machine...it shows as access denied. I have not added the win 2k user to my samba users list but since i have set my printer to have guess access...i dont think this should be a problem...however i also do not know if there is a guest account in smbpasswd.
now i read a few howtos and noticed that the spool directory in smb.conf and /etc/printcap should be the same, however when i open /etc/printcap i only see "lp: " and nothing else so i added sd:, and mx to it. i put the same directory as that in smb.conf for sd: however the printing still does not work....i forgot to say somethign though....the printer works fine from other linux machines and also the other shares from windows to the linux box work fine...i can read and write both to and from the linux box according to my share specification.
i have attached my printers part of smb.conf below...please see and let me know what changes i shud make to get this to work...also plz let me know if i shud rather attach the printer to the windows machine and then use samba to access it from the linux boxes...will that be easier to setup?
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
# security = server
path = /var/spool/samba
# path = lp:
browseable = no
public = yes
# Set public = yes to allow user 'guest account' to print
printable = yes
# guest ok = yes
create mode = 0700
writable = no
#added by BGH
# use client driver = yes
# disable spools=no

[lp]
# security = server
comment = lp
path = /var/spool/samba
# path = lp:
printer name = lp
#This section added by BGH from tldp.org SMB HowTo
# browseable = yes
# available = yes
public = yes
# guest ok = no
writeable = yes
printable = yes
print command = lpr -r -h -P %p %s

i have tried both printcap names..../etc/printcap as well as cups.
i could really use some help here so please do let me know if you know anything about fixing this...also plz let me know if you need some more information.
thank you

jdolluc 11-05-2003 06:54 AM

the only way i was able to setup printer sharing with 2k was to set the global securtity variable:
security=share
in my smb.conf

i know there's other ways, but that is how i got it to work. it still shows as 'permission denied' on the printer status box in windows, but it will print.


All times are GMT -5. The time now is 04:42 PM.