Leigh Gardiner wrote:
>
> What I've done is setup an IBAY and a Virtual Domain and this
> one username is in control of this ibay and domain. They can
> login via FTP, but i want to lock them into the
> /home/e-smith/files/ibays/nameofsite dir and give them read,
> write and execute access to it. What ive done so far is
> changed the group and user owner ship to this user so they
> have complete control over the dirs etc. But as i said above,
> what im aiming for is when they log into the FTP with the
> username their in the /home/e-smith/files/ibays/nameofsite
> folder and cannot go up dirs back into the rest of the file
> system (it only goes back as far as /home/e-smith/files/
> anyway, but i don't really want them to go back even that
> far...)
>
> I've got them starting in the site ibay dir but changing
> their homedir in /etc/passwd to its dir.
>
> Idea's?
I just wrapped something I use up as an rpm for you if youd care to try it, available from:
http://www.pagefault.org/e-smith/contrib/index.html#proftpdIt enables you to set a default root for ftp by the following commands:
/sbin/e-smith/db accounts setprop username Chroot yes ChrootDir directory
/sbin/e-smith/signal-event remoteaccess-update
Where username is the username of the account and directory is the directory to lock them to.
My be totally useless or may be what your after...
--
Damien