pkgadd failure / was: Re: [request-sponsor] Requesting sponsor for CR# 6488593("/etc/profile should set TMPDIR to /tmp/$LOGNAME/") ...

2006-11-04 Thread Dave Miner
Roland Mainz wrote:
> Dave Miner wrote:
>> Casper.Dik at Sun.COM wrote:
 Darren J Moffat wrote:
> Roland Mainz wrote:
> [snip]
 Good idea (I use this myself :-)).  Should the directory be created
 700 by default?
>>> There's a risk in setting $TMPDIR and making it mode 700; the risk
>>> is that programs started under a different uid may start to fail.
>>>
>> Yeah, you'll notice that if you try to su to root and run installers
>> that run pkgadd internally.  I use this method, and the StarOffice 8
>> installer failed quite mysteriously until I realized it was just an
>> instance of that problem and reset TMPDIR to something else.
> 
> Is there any bug yet to add a simple check to "pkgadd" to catch this
> kind of mistake early ?
> 

I don't believe so, I hadn't had time to look into it yet.

Dave



pkgadd failure / was: Re: [request-sponsor] Requesting sponsor for CR# 6488593("/etc/profile should set TMPDIR to /tmp/$LOGNAME/") ...

2006-11-04 Thread Roland Mainz
Dave Miner wrote:
> Casper.Dik at Sun.COM wrote:
> >> Darren J Moffat wrote:
> >>> Roland Mainz wrote:
[snip]
> >> Good idea (I use this myself :-)).  Should the directory be created
> >> 700 by default?
> >
> > There's a risk in setting $TMPDIR and making it mode 700; the risk
> > is that programs started under a different uid may start to fail.
> >
> 
> Yeah, you'll notice that if you try to su to root and run installers
> that run pkgadd internally.  I use this method, and the StarOffice 8
> installer failed quite mysteriously until I realized it was just an
> instance of that problem and reset TMPDIR to something else.

Is there any bug yet to add a simple check to "pkgadd" to catch this
kind of mistake early ?



Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)