1834394 Members
2065 Online
110066 Solutions
New Discussion

Re: lp errors

 
Jim Mickens_2
Occasional Advisor

lp errors

I get an error when trying to use lp to print a file:
mauhp2 35: lp -d maulj01 test.txt (print command)
lp: can't access file "/test.txt" (results)

This happens to all my users when tryint to lp from the csh. root does not
have this problem. Anybody know what causes it? It's been happening since the
last dps patch I installed two weeks ago.
7 REPLIES 7
Robert Gamble_3
Regular Advisor

Re: lp errors

what are the permissions of /test.out ?

do non-root users have permission to read the file (which is sitting in the
root ( / ) directory ?)

for all the users to see and print this file, users must be able to read in
that directory. I would move the test file to /tmp and open up the permissions.

Good Luck!
Paul Vandevelde_1
New Member

Re: lp errors

Jim,

I remember that some time ago, I had also problems printing with lp in a DPS
environment. I'm not sure it was the same problem, but to solve it, I had to do
the following :

#cd /opt/pd/lbin
#chmod 4555 pdlp
#chown root:sys pdlp

That's all ! Hope it will help.

-Paul
Jim Mickens_2
Occasional Advisor

Re: lp errors

Paul,
Changing the permissions did not fix the problem. Any other ideas?

Robert,
-rw-rw-rw- 1 jmickens users 24 Jul 14 1998 test.txt

The file is in my user directory (/home/jmickens), not the root directory.
That appears to be part of the problem. Even though the file is in my user
directory, it appears the command is trying to find it in the root directory.

All,
I just tried something else, and that was to enter the command with the full
path of the test.txt file. It printed with no problems (from my user
account). If I am in the directory with the file and try to print it without
the full path, I get the error. The root account is able to print either way.
Steve White_8
Frequent Advisor

Re: lp errors

When I look at your error the file is in the root directory. Try cd / ls
-al|more and look at the permissions of the file .

The client will require read access to print.
try typing chmod o+r /test.txt then try printing again.
Jim Mickens_2
Occasional Advisor

Re: lp errors

That's part of the problem. The file is not in /, it is in /home/jmickens.
The permissions on the file are fine. See my response to Paul.
Robert Gamble_3
Regular Advisor

Re: lp errors

Jim,

It looks to me like a PATH problem.
Because you are able to print fine when the full path is specified, I really
don't think its related to the DPS patch. Look for other changes that might
have occured about the same time(if you didn't have to specify path before). It
almost looks like the current directory is not in your PATH, but it is in
root's, which is unusual.
Please post any resolutions you find in this matter.

Good Luck!
Jim Mickens_2
Occasional Advisor

Re: lp errors

Nothing else has changed. It's not just on my account, it's on all of the
user's accounts that the problem is occurring. None of the centralized scripts
set up for user logins have changed since November, and the problem started
right after the patches were installed.

I agree, it's very unusual. The current directory (.) is in the path for the
users accounts, but not for root.