1833189 Members
2913 Online
110051 Solutions
New Discussion

Adding a remote printer

 
SOLVED
Go to solution
Andrew Young_2
Honored Contributor

Adding a remote printer

Hi

When attempting to create a remote printer connection and running:

lpadmin -pmyprinter -orm10.10.10.10 -orprint -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel

I get the following error:
lpadmin: can't open member file

I suspect its permissions somewhere but I can't find where.

HP-UX 11i PA-RISC

Thanks

Andrew Young
Si hoc legere scis, nimis eruditionis habes
6 REPLIES 6
Rajeev  Shukla
Honored Contributor

Re: Adding a remote printer

Use the following command

lpadmin -p$printer -orm -orp$printer -mrmodel -v/dev/null -ocmrcmodel -osmrsmodel
Andrew Young_2
Honored Contributor

Re: Adding a remote printer

Apart from a small typo in the remote spooler name thats what I did.
Si hoc legere scis, nimis eruditionis habes

Re: Adding a remote printer

Do you get the same error if you try adding the printer via sam?
Hello World
Andrew Young_2
Honored Contributor

Re: Adding a remote printer

I tried sam first. Same error. Which is what makes me think it is directory permission somewhere. It works fine on our development box. The only difference is that we have moved /var/spool/lp onto a file sytem of its own because of the volumes we print.
Si hoc legere scis, nimis eruditionis habes
Robert-Jan Goossens
Honored Contributor
Solution

Re: Adding a remote printer

Hi Andrew,

Could you check the permissions of

# ls -lad /etc/lp
drwxr-xr-x 8 lp bin 1024 Oct 17 2003 /etc/lp
# ls -lad /var/spool/lp
drwxr-xr-x 4 lp bin 1024 Feb 17 16:02 /var/spool/lp

Regards,
Robert-Jan
Andrew Young_2
Honored Contributor

Re: Adding a remote printer

Hi Robert-Jan

It was the permission on the /etc/lp directory that were set to root:sys. I have changed it and it worked fine. Thanks for your help.

Regards

Andrew Young
Si hoc legere scis, nimis eruditionis habes