Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2006 01:42:41 -0700
From:      "Wil Hatfield" <freebsd@hyperconx.com>
To:        "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Partitioning on existing system
Message-ID:  <NGBBKBOMKLFOJCCDHPEOKEDBPPAA.freebsd@hyperconx.com>
In-Reply-To: <DF73B7F3-5CE8-4C67-840A-F3BA1C0DFCC0@shire.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Chad,

> this appears that you want a file backed image file mounted as your /
> tmp.  This should be easy to do.  Read the handbook for file-backed md
> (4) devices.
>
> I don't use them for /tmp but I run them with jails...  I have about
> 60 such image files mounted now for example

Thanks for the great kick in the right direction. Is it really this easy? I
guess so cause it is working. I dropped in a helloworld script, chmoded it
and even as root I couldn't run it. Supreme!

mdmfs -M -o noexec,nosuid -s 100m md0 /tmp
chmod 1777 /tmp

Now anybody know of an easy way to search for chroot.


Cheers,

--
Wil Hatfield





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NGBBKBOMKLFOJCCDHPEOKEDBPPAA.freebsd>