Operating System - HP-UX
1753777 Members
7352 Online
108799 Solutions
New Discussion юеВ

Problem with user on print

 
SOLVED
Go to solution

Problem with user on print

I have a problem of print with any user, except root.

I use command:

$ lp -dPTR_NAME filename

and return this error:

"Unable to set the effective user id to 9 "

I have changed /etc/group, included the users on group lp and nothing.

I've gone in to SAM and verified that the printer is still listed as the
default, killed the spooler queue and restarted it.

I restart the server, and same error.

Any suggestions ?
9 REPLIES 9
Tim Nelson
Honored Contributor

Re: Problem with user on print

exectute "id lp"

if it does not return anything then someone removed the lp username from /etc/passwd.

re-add the user
lp:*:9:7::/var/spool/lp:/sbin/sh

undo the mods to /etc/group as you just messed up the security.

skt_skt
Honored Contributor

Re: Problem with user on print

check the permission too
-r-sr-xr-x 1 root bin 45056 Jul 15 2006 /bin/lp

Re: Problem with user on print

Hi Tim Nelson, I execute the procedure:

# id lp

uid=9(lp) gid=7(lp)

# cat /etc/passwd | grep lp

lp:*:9:7::/var/spool/lp:/sbin/sh

This info are correct.

Re: Problem with user on print

Hi Santhosh, I verify a permission, and have diff from your:

#ls -l /bin/lp
-rwxrwxrwx 1 root bin 73728 Sep 5 2006 /bin/lp

How to back the original permissons with chmod ?
OldSchool
Honored Contributor
Solution

Re: Problem with user on print

chmod 4555 /bin/lp
Paul Sperry
Honored Contributor

Re: Problem with user on print

-r-sr-xr-x 1 root bin 102932 Apr 17 2006 /bin/lp

Re: Problem with user on print

Problem solved, changed permission from the file and restarted spooler, work.

Thanks to all.

Re: Problem with user on print

Thanks to all.
Dennis Handly
Acclaimed Contributor

Re: Problem with user on print

>changed permission from the file

If this file was messed up, there may be others. You can check with:
# swverify \*