Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm sure this is a common enough problem, I just can't seem to figure it out. I've got file sharing working with samba but the printing is giving me a fit. I can see the printers from Windows in network neighborhood, put when I send a print job, nothing happens. Linux printing works fine so I know thats not the issue. I've tried changing the path multiple times, but the only files that get modified are those in the directory specified in Linux as the spool directory for the printer. Anyway, here's the smb.conf. Other details:
Distro: SuSE 8.2
Samba: 2.2.7a-78
[global]
workgroup = MINE
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
log level = 1
syslog = 0
printing = lprng
printcap name=/etc/printcap
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[printers]
path = /var/spool/lpd/lexmarkz22-z32
guest ok = yes
printable = yes
print command = lpr -P%p -r %s
lpq command = lpq -P%p
lppause commmand = lpc hold %p %j
lpresume command = lpc release %p %j
queuepause command = lpc stop %p
queueresume command = lpc start %p
browseable = no
I changed the path to /tmp and restarted samba. Here is a log.smbd that contains only entries starting with the last restart and pertains to my one printing attempt from Win2K:
[2003/07/06 19:51:15, 0] smbd/server.c:main(707)
smbd version 2.2.7a-SuSE started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/07/06 19:51:15, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 1 (pid 3427 from pid 3427)
[2003/07/06 19:51:15, 0] param/loadparm.c:map_parameter(2090)
Unknown parameter encountered: "lppause commmand"
[2003/07/06 19:51:15, 0] param/loadparm.c:lp_do_parameter(2779)
Ignoring unknown parameter "lppause commmand"
[2003/07/06 19:51:15, 0] smbd/server.c:main(751)
standard input is not a socket, assuming -D option
[2003/07/06 19:52:12, 1] smbd/reply.c:reply_sesssetup_and_X(1025)
Rejecting user 'root': bad password
[2003/07/06 19:52:15, 1] smbd/service.c:make_connection(636)
ibmz4em01lfoc6 (192.168.1.11) connect to service lexmarkz22-z32 as user root (uid=0, gid=0) (pid 3431)
[2003/07/06 19:52:30, 1] smbd/service.c:make_connection(636)
ibmz4em01lfoc6 (192.168.1.11) connect to service lexmarkz22-z32 as user nobody (uid=65534, gid=65533) (pid 3431)
[2003/07/06 19:53:31, 1] smbd/service.c:close_cnum(684)
ibmz4em01lfoc6 (192.168.1.11) closed connection to service lexmarkz22-z32
[2003/07/06 19:53:55, 1] smbd/service.c:close_cnum(684)
ibmz4em01lfoc6 (192.168.1.11) closed connection to service lexmarkz22-z32
I established my connection to the printer using this command:
net use lpt2 \\linux\lexmarkz22-z32 /user:root
Hmmm, could be a problem w/ your permissions. Try changing your printcap permissions to 1777. When I setup my printers initially in Linux/BSD, I use CUPS and make sure in CUPS that all users are allowed access. If you get really frustrated, try CUPS. Use the new KDE printing manager to configure it. Sorry I can't help further.
Unfortunately when I tried to set up CUPS (using the foomatic database of drivers since the SuSE set of drivers doesn't support the Lexmark Z22) the driver seemed to leave the printer in an unusable state until you pressed the form feed button. I switched back to lprng using the lexmark driver and it was OK. Stil no luck with samba printing. Can you refer me to another possible source of assistance?
Here's the global section again, in case it helps:[global]
workgroup = MINE
os level = 2
time server = Yes
unix extensions = Yes
encrypt passwords = Yes
map to guest = Bad User
log level = 1
syslog = 0
printing = lprng
printcap name=/etc/printcap
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
wins support = No
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
One question. Does samba have a problem with a hyphen (-) in a printer name? The lexmark driver I'm using creates a print queue called lexmarkz22-z32. I tried to create a raw print queue as an SMB connection and when I selected that printer, the test connection reported a problem. I used webmin and if I was correct, I created a share called z22 that should have referneced lexmarkz22-z32, but that didn't work either.
Figured it out. It was the whole Lexmark thing. I brought my HP laserjet 5 out of retirement. Installed it using lprng and with no samba changes was able to print from Win2K. I guess now I know why Lexmark printers are so cheap. I found a web site call fixyourownprinter.com that I can buy the part and a video on how to make my laserjet good as new. Guess the Lexmark goes in the closet for emergency purposes. Sorry to be such a problem. Thanks for all of you help.
Good on ya I still recommend CUPS though. Laserjets are the schizznit. I have a Lexmark monstrosity that I just use for color printing and my Laserjet is my workhorse. >pats Laserjet affectionately< Laserjets last forever.
Just had to add one last comment. I took your advice and switched from LPRNG to CUPS printing and the formfeed I was getting at the end of a samba print job that just spit out a blank page went away. Thanks again for all of the help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.