home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!rio.engr.washington.edu!twotone
- From: twotone@rio.engr.washington.edu ()
- Newsgroups: comp.sys.hp
- Subject: Re: Problems with lp...
- Date: 22 Jan 1993 18:15:56 GMT
- Organization: University of Washington, Seattle
- Lines: 38
- Sender: twotone@rio.engr.washington.edu
- Distribution: world
- Message-ID: <1jpdksINNl9n@shelley.u.washington.edu>
- References: <MEYER.93Jan21204612@ibsen.geomatic.no>
- NNTP-Posting-Host: rio.engr.washington.edu
-
-
- In article <MEYER.93Jan21204612@ibsen.geomatic.no> meyer@geomatic.no (Harald Martens Meyer) writes:
- >I've recently upgraded to UX9.0. I then ran the first part of
- >/etc/mklp to clean up my printing system.
- >
- >Then I made two printers with SAM, both to remote BSD systems. But
- >when I try to print, I get the following error:
- >
- > lp: Unable to set the effective group id to 110
- >
- >110 is the group which I'm part of. (It's in the /etc/group file)
- >
- >Can anybody help me, please??
-
- You've ran across a tiny glitch in using the /etc/mklp program. The first
- part of it that does the 'cleanup' changes the group of several lp programs
- and files to bin. If you look at the default group id of lp in /etc/passwd
- it is 7, the lp group. The bin group, however, is group id 2. In order for
- a program to change its effective user or group id, the real user and group id
- of the executing user must match the program.
-
- When you send a print job, it is spooled by the lp user. The lp program changes
- the effective user and group id to your user and group id so you in effect
- send the final job. Since after running /etc/mklp, /usr/bin/lp has a group
- id of 2 instead of 7, lp can't change the effective group id to 110 (your group)
- when you send a job.
-
- The solution is either to change the group id of lp in /etc/passwd to 2, OR
- modify the /etc/mklp program to chgrp on the lp programs to lp instead of bin.
- I personally like to use /etc/mklp and don't use SAM at all to manage printers.
- My solution was to change /etc/passwd instead of mklp. I have a pretty good
- working version of mklp that I've modified quite a bit to add local and
- remote printers. If you like I could email it to you for reference.
-
-
- Anthony King
- Quinton Instruments, Seattle
-
-