nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How t o configure vsftpd to chroot virtual users

This is a discussion on How t o configure vsftpd to chroot virtual users within the Getting started tutorials forums, part of the Linux Getting Started category; Here is how you chroot virtual users under vsftpd. Make sure that the home directory for the ftp user in ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-19-2007, 05:47 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 564
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default How t o configure vsftpd to chroot virtual users

Here is how you chroot virtual users under vsftpd. Make sure that the home directory for the ftp user in /etc/passwdactually contains the string $USER as it is in /var/ftp/$USER

open vsftpd.conf
Code:
vi vsftpd.conf
And config it as follows:
Code:
guest_enable=yes
guest_username=ftp
chroot_local_user=YES
user_sub_token=$USER
Restart vsftpd:
Code:
/etc/init.d/vsftpd restart
Ref: Manpage of VSFTPD.CONF
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
different php.ini for different virtual users kasimani Web servers 1 04-15-2008 02:17 PM
Minisendmail chroot get.the.MaX Web servers 2 01-17-2008 11:58 PM
lighty: mysql issue when chroot enabled TECK Web servers 11 11-24-2007 11:06 AM
Redhat Users vsftpd FTP Passwd Reset Problem bubloob_13 CentOS / RHEL / Fedora 1 11-05-2007 08:03 PM
vsftpd error kasimani Networking, Firewalls and Security 7 03-12-2007 08:41 PM


All times are GMT +5.5. The time now is 08:37 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36