DragonFly kernel List (threaded) for 2004-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Partition naming conventions
On Tue, Mar 23, 2004 at 09:15:14AM -0500, Dave Cuthbert wrote:
> One of the things I've liked about Solaris is the way /tmp is mounted on
> swap and is purged upon every reboot. This does break a few (IMHO
> broken) scripts, though, that expect /tmp to survive a reboot.
That's what /var/tmp is for. But those scripts supposedly use /tmp only
as fallback for /usr/tmp :)
> I'm still puzzling over Microsoft's decision to eliminate /tmp (well,
> ok... c:\temp) in favor of a per-user /tmp equivalent. I can't quite
> figure out what security flaw this addresses that isn't addressed by a
> proper use of permissions (or, better, ACLs) and/or mkstemp().
Well, let's do it:
mkdir /real-tmp
mount_mfs -s 256000 swap real-tmp
rm -R /tmp
ln -s '/real-tmp/${USER}' /tmp
And in /etc/profile:
old_umask=`umask`
umask 77
mkdir /real-tmp/${USER}
uasm $old_umask
old_umask=
varsym USER=$USER
Joerg
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]