Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!ct1x+ From: ct1x+@andrew.cmu.edu (Ching-Ping Tseng) Newsgroups: comp.unix.admin Subject: Re: remote printing from HP Unix system Message-ID: Date: 20 Jun 91 16:50:43 GMT References: <3882@tdw206.ed.ray.com>, <2011@prcrs.prc.com> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 111 In-Reply-To: <2011@prcrs.prc.com> Excerpts from netnews.comp.unix.admin: > 4-Jun-91 Re: remote printing from HP.. Paul Hite@prcrs.prc.com (1531)} > > In article <3882@tdw206.ed.ray.com>, heiser@tdw206.ed.ray.com (Bill Heiser - > Unix Sys Admin) writes: > > > I have a user using an HP Unix system, trying to print remotely > > either using lp or lpr to a Sun system. > > Well, for starters, how was the printer definition set up on the hp? It's > easy to get it wrong. Since it isn't working anyway, try removing and > re-adding it: > > #! /bin/sh > HOST= > PRINT= > HPPRINT= > /usr/lib/lpshut > /usr/lib/lpadmin -x$HPPRINT > /usr/lib/lpadmin -p$HPPRINT -mrmodel -v/dev/null -ocmrcmodel \\ > -osmrsmodel -orm$HOST -orp$PRINT -ob3 > # assuming that HPPRINT should be the default printer: > /usr/lib/lpadmin -d$HPPRINT > /usr/lib/lpsched > > I am a novice system adminstration assistant. We have the same requirment of printing from HP 9000/320s (running HP-UX 7.0, old...) to an APPLE LaserWriter IINTX connected to a SUN 3/60 (runing SunOS 4.1.0) via RS-232. Thanks to the response given by paul@prcrs.pre.com, we can do the printing too now. However, there is one further question: The printing can be transmitted successfully to SUN only if it is sent by root. Every other user receives this message: % lp /etc/mklp (or whatever the file is) lp: Unable to set the effective group id to 10 (or the user's GID) The lpstat works fine in all cases. It's obvious that lp can not set gid on execution. But I've checked the permission mode, owner and group of all the related files and they all match the description in /etc/mklp. Can someone give me a hint where else to look at? Thanks in advance. --- Robert Tseng CADLab Assistant Department of Architecture Carnegie Mellon University ct1x+@andrew.cmu.edu Tel: (412) 268-3596 P.S. We have YP running on all the machines and the /etc/passwd and /etc/group on HPs look like this: /etc/passwd: root:sCsHc60pR8aJE:0:0::/:/bin/csh daemon:*:1:5::/:/bin/sh bin:*:2:2::/bin:/bin/sh adm:*:4:4::/usr/adm:/bin/sh uucp:*:5:3::/usr/spool/uucppublic:/usr/lib/uucp/uucico lp:*:9:7::/usr/spool/lp:/bin/sh +::0:0::: /etc/group: root::0: other::1: bin::2:root,bin,lp sys::3: adm::4: daemon::5: mail::6: lp::7: +: [/usr/bin] -r-sr-sr-x 1 lp bin 66876 Jan 16 1990 cancel* -r-sr-sr-x 1 lp bin 60808 Jan 16 1990 disable* -r-sr-sr-x 1 lp bin 26472 Jan 16 1990 enable* -r-sr-sr-x 1 lp bin 94208 Jan 16 1990 lp* -r-sr-sr-x 1 root bin 102400 Jan 16 1990 lpalt* -r-xr-xr-x 1 bin bin 608 Jan 16 1990 lpr* -r-sr-sr-x 1 lp bin 110592 Jan 16 1990 lpstat* [/usr/lib] -r-sr-sr-x 1 root bin 122880 Jan 16 1990 lpsched* -r-sr-sr-x 1 root bin 98304 Oct 12 1989 rcancel* -r-sr-sr-x 1 root bin 62460 Oct 12 1989 rlp* -r-sr-sr-x 1 root bin 118784 Oct 12 1989 rlpdaemon* -r-sr-sr-x 1 root bin 81752 Oct 12 1989 rlpstat* -r-sr-sr-x 1 root bin 54412 Jan 16 1990 rwrite* -r-sr-sr-x 1 lp bin 54476 Jan 16 1990 accept* -r-sr-sr-x 1 lp bin 80588 Jan 16 1990 lpadmin* -r-sr-sr-x 1 lp bin 56520 Jan 16 1990 lpfence* -r-sr-sr-x 1 lp bin 60256 Jan 16 1990 lpmove* -r-sr-sr-x 1 lp bin 52040 Jan 16 1990 lpshut* -r-sr-sr-x 1 lp bin 54928 Jan 16 1990 reject* [usr/spool/lp] drwxr-xr-x 15 lp bin 1024 Jun 19 21:42 ./ drwxr-xr-x 2 lp bin 1024 Jun 19 13:24 class/ drwxr-xr-x 2 lp bin 1024 Jun 19 16:45 interface/ drwxr-xr-x 2 lp bin 1024 Jun 19 16:45 member/ drwxr-xr-x 5 lp bin 1024 Jun 19 16:45 request/ drwxr-xr-x 2 lp bin 1024 Jun 19 16:45 cinterface/ drwxr-xr-x 2 lp bin 1024 Sep 15 1989 cmodel/ drwxr-xr-x 2 lp bin 1024 Jun 19 16:45 sinterface/ drwxr-xr-x 2 lp bin 1024 Sep 15 1989 smodel/ -rw-r--r-- 1 lp lp 2268 Jun 19 21:34 pstatus -rw-r--r-- 1 lp lp 564 Jun 19 16:45 qstatus [/usr/spool/lp/model] -r-sr-sr-t 1 lp bin 4432 Oct 12 1989 model/rmodel*