Subject: Re: Virtual Ftp under Solaris and posibly SunOS

From: Jim Davis <[email-masked]>
Date: Sun, 2 Nov 1997 16:15:05 -0700 (MST)

On Fri, 31 Oct 1997, Mark Rogov wrote:

> Lets consider Solaris 2.5.2. I have ftpaccess file and passwd configured
                        2.5.1 ?
> so user directory would be chrooted after login. Works fine.

> 
> I'd like to move /bin, /dev, /usr/lib to a permanent location (one place
> instead of every ftp acct dir), so everyone would be able to use them,
> yet /pub (or in this case /..) would get chrooted.
> 
> Is that possible? If yes, how?

Look into loopback mounts (man lofs).  You can then just mount the library
stuff, etc.  under each chrooted directory, with only one copy of libc.so
and friends on disk

You can make the loopback mounts read-only, which adds a little extra
security too.