Showing posts with label ftp. Show all posts
Showing posts with label ftp. Show all posts

Thursday, August 8, 2019

Tuesday, April 25, 2017

Proftp : Unknown configuration directive ‘VRootEngine’

Error :
proftpd[3321]: Fatal: Unknown configuration directive ‘VRootEngine’ on line 16 of ‘/etc/proftpd.conf’

Solution :
Edit /et/proftpd.conf file.
...
VRootEngine                     on
DefaultRoot                     ~ !adm
VRootAlias                      /etc/security/pam_env.conf etc/security/pam_env.conf
...

Change to
...
<IfModule mod_vroot.c>
VRootEngine                     on
DefaultRoot                     ~ !adm
VRootAlias                      /etc/security/pam_env.conf etc/security/pam_env.conf
</IfModule>
...

# service proftpd start
# nestat an | grep 21

Thursday, November 5, 2015

VSFTP Server configuration

Install vsftp server :

# yum -y install vsftpd

Create allow user file :

# touch /etc/vsftpd/chroot_list

Edit vsftp configuration /etc/vsftpd/vsftpd.conf :
#####################################################
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/xferlog
xferlog_std_format=NO
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#banned_email_file=/etc/vsftpd/banned_emails
#chroot_list_enable=YES
chroot_local_user=YES
chroot_list_file=/etc/vsftpd/chroot_list
ls_recurse_enable=YES
listen=YES
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
local_root=/<XXXX(Directory to access)>
use_localtime=YES
log_ftp_protocol=YES
#####################################################
Start vsftp server :

# /etc/rc.d/init.d/vsftpd start
# chkconfig vsftpd on


Source :