Operating System - Tru64 Unix
1751685 Members
5334 Online
108781 Solutions
New Discussion юеВ

Re: LPR question on Tru64

 
Thanos_1
Occasional Advisor

LPR question on Tru64

I am trying to use the lpr command from a dos prompt ie lpr -S -P .

Afret adding an entry with 2 pluses to the /etc/hosts.equiv file and the ip-address of the user that issues the lpr command, to the /etc/hosts file evrything it works OK.

My question is if there is a way of doing this without adding the Ip-address entry to the /etc/hosts file

Thanks in advance

Thanos Kanatas
9 REPLIES 9
Michael Schulte zur Sur
Honored Contributor

Re: LPR question on Tru64

Hi,

man lpd says:
All requests must originate from one of the machines listed in the
/etc/hosts.equiv or /etc/hosts.lpd file.


greetings,

Michael
Thanos_1
Occasional Advisor

Re: LPR question on Tru64

Thanks Michael,

Since I have many users accessing these printers I need to know
if there is a wild character that I can use to avoid typing the IP address of each user
into the /etc/hosts file.

Regards

Thanos
Michael Schulte zur Sur
Honored Contributor

Re: LPR question on Tru64

Hi,

no need to put all the user into the /etc/hosts file. If you want to allow anyone to print you can put a * to /etc/hosts.lpd

greetings,

Michael
Thanos_1
Occasional Advisor

Re: LPR question on Tru64

I tried it but didnt work. Even afrer restarting the lpd deamon.

Remind you that

The /etc/hosts.equiv file has an entry with 2 pluses.
Additionally when I put the IP address to the /etc/hosts file works with no problem.

Michael Schulte zur Sur
Honored Contributor

Re: LPR question on Tru64

Thanos,

please read my post. It is

/etc/hosts.lpd not /etc/hosts.equiv
!

Michael
Thanos_1
Occasional Advisor

Re: LPR question on Tru64

Yes I know the difference.

The reason I am writing about the /etc/hosts.equiv file is because I need to also have rsh & rcp access to users.

I am just trying to describe possible consistences

Regards

Thanos
Thanos_1
Occasional Advisor

Re: LPR question on Tru64

Extra info.

When I delete the /etc/hosts.lpd file and adding the IP address entry to the /etc/hosts file we can only print if the /etc/hosts.equiv file has the 2 pluses. If not I get the same message

C:\>lpr -S las -P newprin a.txt
Error: print server did not accept request. Job aborted.

Note the vesrion of Tru64 is 4.0f

Thanos
Michael Schulte zur Sur
Honored Contributor

Re: LPR question on Tru64

Now I understand what you mean.
Since you can not use * in /etc/hosts
you will have to add them all.
Except you have NIS.

greetings,

Michael
Thanos_1
Occasional Advisor

Re: LPR question on Tru64

Thanks for your time