home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / hp / 15212 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  2.2 KB

  1. 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
  2. From: twotone@rio.engr.washington.edu ()
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Problems with lp...
  5. Date: 22 Jan 1993 18:15:56 GMT
  6. Organization: University of Washington, Seattle
  7. Lines: 38
  8. Sender: twotone@rio.engr.washington.edu
  9. Distribution: world
  10. Message-ID: <1jpdksINNl9n@shelley.u.washington.edu>
  11. References: <MEYER.93Jan21204612@ibsen.geomatic.no>
  12. NNTP-Posting-Host: rio.engr.washington.edu
  13.  
  14.  
  15. In article <MEYER.93Jan21204612@ibsen.geomatic.no> meyer@geomatic.no (Harald Martens Meyer) writes:
  16. >I've recently upgraded to UX9.0. I then ran the first part of
  17. >/etc/mklp to clean up my printing system.
  18. >
  19. >Then I made two printers with SAM, both to remote BSD systems. But
  20. >when I try to print, I get the following error:
  21. >
  22. >    lp: Unable to set the effective group id to 110
  23. >
  24. >110 is the group which I'm part of. (It's in the /etc/group file)
  25. >
  26. >Can anybody help me, please??
  27.  
  28. You've ran across a tiny glitch in using the /etc/mklp program.  The first 
  29. part of it that does the 'cleanup' changes the group of several lp programs
  30. and files to bin.  If you look at the default group id of lp in /etc/passwd
  31. it is 7, the lp group.  The bin group, however, is group id 2.  In order for
  32. a program to change its effective user or group id, the real user and group id
  33. of the executing user must match the program.  
  34.  
  35. When you send a print job, it is spooled by the lp user.  The lp program changes
  36. the effective user and group id to your user and group id so you in effect 
  37. send the final job.  Since after running /etc/mklp,  /usr/bin/lp has a group
  38. id of 2 instead of 7, lp can't change the effective group id to 110 (your group)
  39. when you send a job.
  40.  
  41. The solution is either to change the group id of lp in /etc/passwd to 2, OR
  42. modify the /etc/mklp program to chgrp on the lp programs to lp instead of bin.
  43. I personally like to use /etc/mklp and don't use SAM at all to manage printers.
  44. My solution was to change /etc/passwd instead of mklp.  I have a pretty good
  45. working version of mklp that I've modified quite a bit to add local and 
  46. remote printers.  If you like I could email it to you for reference.
  47.  
  48.  
  49. Anthony King
  50. Quinton Instruments, Seattle
  51.  
  52.