Bjoern Michaelsen wrote:
On Wed, Mar 30, 2005 at 02:56:38AM +0000, timothy johnson wrote:

is there a way to link a dir to another dir without it moving to that
location on the filesystem. I was chrooting a user to lock them into a
dir, but I still wanted them to have access to this one dir that sits
outside the chrooted area???

mount --bind for dirs. If its on the same fs you can also concider hardlinking files with ln (doesnt work for dirs).


If you want a secure chroot you *must* use a separate filesystem
V
symlinking don't work across filesystem.
V
"mount --bind" is the only /secure/ way, it also work for sockets
(example: used to disable networking on mysql and still run mysql and apache in differents chroot)



-- No problem is so formidable that you can't walk away from it. ~ Charles M. Schulz But sometimes run fast is better ~ Francesco R. -- [email protected] mailing list



Reply via email to