Discussion Locked

LPR printing problem

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a FreeBSD-4.5r box set up with a HP printer, and it is working fine. I also have in the same office 6 NT servers (NT4sp6a) I want to print to that printer. I have LPR printing enabled on the servers and can add the printer device to the NT4 boxes, but when I try to print a test page the print queue window shows access denied. On the FreeBSD box is /etc/hosts.lpd, in which I have the server names listed, (and I have also added the server ip addresses). I have also put the server names andIP addresses in the /etc/hosts file. What am I missing?

7 replies

by kuhlio

Don't hold me to this, because it has been a while since I have worked with Linux, but I seem to recall that you had to add users to the Linux box in order to use anything (like the printer). Not just the server names, but the user names also. It is a matter of the Linux box authenticating the users on the NT boxes. I hope that helps, and if I can drudge anything else up from my memory banks, I will let you know.

by chipw

I don't know where you got the idea I am using Linux, I mention a couple times that I am using FreeBSD. And I mentioned I have the user names and ip addresses listed in both the /etc/hosts file and the /etc/hosts.lpd file.

by kuhlio

My apologies on the Linux reference, but as I am sure you know, Linux is BSD based as well, so the similarities exist. Additionally, you stated in your original post that you placed the server names and IP addresses in the /etc/hosts file. My contention remains that since you probably need to authenticate yourself to your BSD box from an NT box that you need to check to make sure that the user names are on that box.

by chipw

You mean I have to create user accounts for everyone on the bsd box even though they are not doing anything on it, just sending print jobs to it? I've never seen any reference to doing this anywhere else.

by kuhlio

I would think so. Printing is just a service like anything else, and it would make sense to me that if you are getting an error that says access denied, then it is an authentication issue somewhere. If the use users that are logging onto the NT servers are added there, and have rights to print, then it would be an issue of whether those users have the right to print on the print server.

by chipw

It's all fine now, and one does not have to create user accounts on the BSD print server machine for all the NT machine users who will be printing to that printer. I just added the machine names for the NT boxes to the hosts.lpd file. I had done this previously, but failed to restart the lpd service using lpc restart all.

This discussion is closed to new replies.