9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Re: /sys/lib/lp/log
@ 2004-03-05  4:23 Jeff Sickel
  2004-03-05  6:18 ` Kenji Okamoto
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Sickel @ 2004-03-05  4:23 UTC (permalink / raw)
  To: 9fans

After doing a fresh install (today) to update my machine to fossil, I 
noticed a few quirks that just needed a slight fix:

lp based commands like 'man -t man | page -w' would error out with

converting from troff to postscript...
/sys/lib/lp/log/stdout: rc (lp): can't open: permission denied
reading through postscript...
cannot find end of first line

The fix is just to create /sys/lib/lp/log/stdout

a-rw-rw-rw- M 63 sys sys 0 Mar  4 21:56 /sys/lib/lp/log/stdout


So for fossil either create your own stdout to use:

mkdir $home/lib/log
bind -c $home/lib/log /sys/lib/lp/log

_or_:

echo 'srv -AWP fs.noauth' >> /srv/fscons
mount /srv/fs.noauth /n/fossil
bind -bc /n/fossil/sys/lib/lp/log /sys/lib/lp/log

man -t man | page -w
exit


As the file is 666, it doesn't really matter who the owner is in the 
long run.

jas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: /sys/lib/lp/log
  2004-03-05  4:23 [9fans] Re: /sys/lib/lp/log Jeff Sickel
@ 2004-03-05  6:18 ` Kenji Okamoto
  2004-03-05  7:10   ` Jeff Sickel
  0 siblings, 1 reply; 5+ messages in thread
From: Kenji Okamoto @ 2004-03-05  6:18 UTC (permalink / raw)
  To: 9fans

> lp based commands like 'man -t man | page -w' would error out with
> converting from troff to postscript...
> /sys/lib/lp/log/stdout: rc (lp): can't open: permission denied
> reading through postscript...
> cannot find end of first line

curious, I have no error for the above command...

> The fix is just to create /sys/lib/lp/log/stdout
> 
> a-rw-rw-rw- M 63 sys sys 0 Mar  4 21:56 /sys/lib/lp/log/stdout

/rc/bin/lp has lines of

LPLOG=$LPLOGDIR/$LPDEST
if (! test -e $LPLOG) {
	>$LPLOG
	chmod +rwa $LPLOG >[2]/dev/null
}
so, it will be made automatically if not.

Kenji



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: /sys/lib/lp/log
  2004-03-05  6:18 ` Kenji Okamoto
@ 2004-03-05  7:10   ` Jeff Sickel
  2004-03-05  8:53     ` Kenji Okamoto
  2004-03-05 11:55     ` David Presotto
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Sickel @ 2004-03-05  7:10 UTC (permalink / raw)
  To: 9fans


On Mar 5, 2004, at 12:18 AM, Kenji Okamoto wrote:

>
> /rc/bin/lp has lines of
>
> LPLOG=$LPLOGDIR/$LPDEST
> if (! test -e $LPLOG) {
> 	>$LPLOG
> 	chmod +rwa $LPLOG >[2]/dev/null
> }
> so, it will be made automatically if not.

It would depend on if you have permissions to /sys/lib/lp/log or not.  
Right after a fresh (yesterday or today) install, /sys/lib/lp/log has 
the permissions sys.sys 775, so glenda couldn't create the $LPLOG file, 
unless you added glenda into the sys group before running lp.

jas



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: /sys/lib/lp/log
  2004-03-05  7:10   ` Jeff Sickel
@ 2004-03-05  8:53     ` Kenji Okamoto
  2004-03-05 11:55     ` David Presotto
  1 sibling, 0 replies; 5+ messages in thread
From: Kenji Okamoto @ 2004-03-05  8:53 UTC (permalink / raw)
  To: 9fans

> /sys/lib/lp/log has 
> the permissions sys.sys 775, so glenda couldn't create the $LPLOG file, 
> unless you added glenda into the sys group before running lp.

Yes, I checked souces's /sys/lib/lp/log permission, and found you are
right.   It was long time ago when I, probably, made change it locally here,
and I've forgotten it.

Kenji



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] Re: /sys/lib/lp/log
  2004-03-05  7:10   ` Jeff Sickel
  2004-03-05  8:53     ` Kenji Okamoto
@ 2004-03-05 11:55     ` David Presotto
  1 sibling, 0 replies; 5+ messages in thread
From: David Presotto @ 2004-03-05 11:55 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 51 bytes --]

thanks, I just made /sys/lib/lp/log 777 on sources.

[-- Attachment #2: Type: message/rfc822, Size: 2682 bytes --]

From: Jeff Sickel <jas@corpus-callosum.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Re: /sys/lib/lp/log
Date: Fri, 5 Mar 2004 01:10:10 -0600
Message-ID: <2423B1C4-6E74-11D8-8A93-003065E1714E@corpus-callosum.com>


On Mar 5, 2004, at 12:18 AM, Kenji Okamoto wrote:

>
> /rc/bin/lp has lines of
>
> LPLOG=$LPLOGDIR/$LPDEST
> if (! test -e $LPLOG) {
> 	>$LPLOG
> 	chmod +rwa $LPLOG >[2]/dev/null
> }
> so, it will be made automatically if not.

It would depend on if you have permissions to /sys/lib/lp/log or not.  
Right after a fresh (yesterday or today) install, /sys/lib/lp/log has 
the permissions sys.sys 775, so glenda couldn't create the $LPLOG file, 
unless you added glenda into the sys group before running lp.

jas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-05 11:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-05  4:23 [9fans] Re: /sys/lib/lp/log Jeff Sickel
2004-03-05  6:18 ` Kenji Okamoto
2004-03-05  7:10   ` Jeff Sickel
2004-03-05  8:53     ` Kenji Okamoto
2004-03-05 11:55     ` David Presotto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).