Re: FTP Access
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Thu, 03 Feb 2011 17:09:55 -0500
On February 3, 2011 15:49, in comp.os.linux.setup, rjk@xxxxxxxxxxxxxxx
wrote:
The Natural Philosopher <tnp@xxxxxxxxxxxxxxx> writes:
ExecMan 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.
Man chroot?
used to work with straight ftp..
pam_chroot is probably the answer for SSH logins, though I've never used
it myself. http://code.google.com/p/pam-chroot/ if it's not already in
CentOS.
The SSH server supports an internal chroot option; see the "ChrootDirectory"
option documented in sshd_config(5).
To the OP: be aware that chroot(2) (in whatever form you use it in) will
require some additional setup in your user's directory structure. chroot(2)
only changes the "root directory", it does not relieve you of the
obligations of having the proper directory structure under the new root
directory. That means, if you intend to chroot() to (say) /home, then there
must be a properly populated /home/etc, /home/dev, /home/bin, and all the
other requisite directories.
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
Me: http://pitcher.digitalfreehold.ca/ | Just Linux: http://justlinux.ca/
---------- Slackware - Because I know what I'm doing. ------
.
- References:
- FTP Access
- From: ExecMan
- Re: FTP Access
- From: The Natural Philosopher
- Re: FTP Access
- From: Richard Kettlewell
- FTP Access
- Prev by Date: Re: FTP Access
- Next by Date: Re: FTP Access
- Previous by thread: Re: FTP Access
- Next by thread: Re: FTP Access
- Index(es):
Relevant Pages
|