Re: vsftpd setup

From: Vwakes (vwakeNOSPAM100_at_softhome.net)
Date: 11/07/03


Date: Thu, 6 Nov 2003 16:00:38 -0700

On Wed, 5 Nov 2003 al wrote:

>Thank you for any help you can provide system points to
>/etc/vsftpd/vsftpd.conf

NO. You don't understand. What do you mean system? Tell us the output of
the following cmd, that should say where the binary is looking for the
config file:

# which vsftpd
/usr/local/sbin/vsftpd

# strings /usr/local/sbin/vsftpd |grep vsftpd.conf
/etc/vsftpd.conf

>I also need to have some secure users i.e.: users that are locked in
>their home dirs.

You mean to put your users in 'chrooted' environment.

>Here is my conf file, I removed all commented stuff:

That's an utter lie in a broad daylight. Why? You don't understand what
'comments' are. I will help you here:

>[root@localhost root]# cat /etc/vsftpd/vsftpd.conf
>anonymous_enable=NO
>local_enable=YES
>local_umask=022
>xferlog_enable=YES
>connect_from_port_20=YES
>xferlog_std_format=YES
>log_ftp_protocol=YES
>ftpd_banner=Welcome to FTP service.
>chroot_list_enable=NO
>chroot_local_user=YES
>pam_service_name=vsftpd
>userlist_enable=NO

See that's how you do it. We just need what options you have enabled
without straining our eyes and mind.

>listen=YES
>tcp_wrappers=YES

You don't need this, if you are starting the server from 'xinetd'.

>passwd_chroot_enable=YES

You should read the 'man vsftpd.conf', it explains things clearly.

  passwd_chroot_enable
       If enabled, along with chroot_local_user , then a chroot() jail
       location may be specified on a per-user basis. Each user's jail
       is derived from their home directory string in /etc/passwd. The
       occurence of /./ in the home directory string denotes that the
       jail is at that particular location in the path.

         Default: NO

V.