Restricting ftp users to their directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tuesday 06 September 2005 18:58, Ajay Sharma wrote:
> Todd Cary wrote:
> > The user can get to /home and see the other dirs...is there a way to
> > make it so the user cannot view the other dirs?
>
> Check out the vsftpd.conf man page and search for 'chroot'.  I have it
> enabled and lock every into their home directory.  Then I also enable
> the exclude list so that when I ftp in I can go anywhere.
>
> Here's the excerpt from my config:
>
> # You may specify an explicit list of local users to chroot() to their
> # home directory. If chroot_local_user is YES, then this list becomes
> # a list of users to NOT chroot().
>
> # chroot everyone
> chroot_local_user=YES
> # enable the excempt list
> chroot_list_enable=YES
> # and here's the list
> chroot_list_file=/etc/vsftpd.chroot_list
Yep, that's the way... 
passwd_chroot_enable might be worth checking out as well.

Peter.

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux