Casper.Dik at sun.com wrote:
> >Darren J Moffat wrote:
> >> Roland Mainz wrote:
> >>> Requesting sponsor for CR# 6488593 ("/etc/profile should set TMPDIR to
> >>> /tmp/$LOGNAME/") - patch is included in the RFE...
> >>
> >> This will I believe need an ARC case since it is a change in default
> >> behaviour.   It also should be done for all shells not just ones
> >> that read /etc/profile.
> >>
> >> Since I do this myself in my own .profile I feel duty bound to stand up
> >> to the plate and by your sponsor for this.  So sign me up for putback
> >> sponsor and I'll be ARC case submitter too.
> >>
> >
> >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.
> 
> But it should either by mode 1777 (to mitigate that risk) or 700
> for privacy.

Default should be the same mode as /tmp - the idea is that users do not
have to dig through zillon files to find "their" temp. files on a large
multiuser machine.
Quick check on our "grendel" (which wasn't "updated" with our custom
/etc/profile mods after last months update to Solaris 10):
$ ls -l /tmp | wc -l
      6187
Fun... ;-(

----

Bye,
Roland

P.S.: Setting Reply-To: to shell-discuss at opensolaris.org

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

Reply via email to