Re: FTP Access
- From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
- Date: Thu, 3 Feb 2011 18:33:47 -0800 (PST)
On Feb 3, 1:02 pm, ExecMan <artme...@xxxxxxxxx> wrote:
I need some help. I am running CentOS 5.x. I have disabled FTP and
only allow SSH / SFTP. I would like to prevent certain users from
going outside their home directories. So, when a given user logs in
to transfer files, or SSH's in, they are contained to their home
directory tree only.
I'm hoping this is not a long drawn out process. If anyone has
anything more easily done, please let me know.
You don't use SSH and SFTP for this. Chroot functionality is *NOT*
built into it, and it's quite painful to support, and leaves confusing
debris in the accessible repository. I used to publish the notes on
how to do that for OpenSSH years ago, and gave up as it got too
awkward to integrate.
Instead, use WebDAV over HTTPS, which is directly accessible with lftp
and numerous other web tools for both upload and download, and is
built-in for Windows clients in "Network Neighborhood" to the relevant
website. It's also manageable with different virtual hosts, or
usernames, haveing write access and others having read-only access to
the same material, all handled in the HTTPD configurations without
mucking with the ownerhip in SSH based chroot cages.
- FTP Access
- From: ExecMan
- FTP Access
- Prev by Date: Re: FTP Access
- Next by Date: Re: fstab and new options which can fail mount
- Previous by thread: Re: FTP Access
- Next by thread: Re: FTP Access