How to Vsftpd conf files Parameter Part 6HARDWARE NETWORKING LINUX SOFTWAREIt Tech Technology

It Tech Technology

COMPUTER HARDWARE NETWORKING

Breaking

Home Top Ad

Post Top Ad

Wednesday, February 24, 2016

How to Vsftpd conf files Parameter Part 6



Vsftpd.conf files Parameter:

Step-8:  Now edit the vsftpd.conf file

To activate or deactivate a feature, remove or add the # at the beginning of the appropriate line.

[root@ftp ~]# vi /etc/vsftpd/vsftpd.conf

Directives
Line Number
Orginal File Text
Modified File Text
anonymous_enable
12
YES
NO/YES
anon_upload_enable
27
YES
YES
anon_mkdir_write_enable
31
YES
YES
dirmessage_enable
35
YES
YES
xferlog_enable
39
YES
YES
chown_uploads
47
YES
YES
chown_username
48
Whoever
deamon
ascii_upload_enable
81
YES
YES
ascii_download_enable
82
YES
YES
deny_email_enable
89
YES
YES
banned_email_file
91
/etc/vsftpd/banned_emails
/etc/vsftpd/banned_emails
pam_service_name
116
vsftpd
vsftpd
userlist_enable
117
YES
YES/NO




anon_other_write_enable
New Line
NO
YES/NO

Note: Remove the “#” from line number 27, 31, 39, 47, 48, 81, 82 but do not remove “#” symbol from line number 89 & 91.

Some useful ftp command:


Command
Description
ascii
Set ascii transfer type
bell
Beep when command completed
binary
Set binary transfer type
bye
Terminate ftp session and exit
cd
Change remote working directory
cdup
Change remote working directory to parent directory
chmod
Change file permission of remote file
dir
List content of remote directory
delete
Delete remote file
get
Recive file from remote server
image
Set binary transfer type
lcd
Change local working directory
ls  -a
List content of remote directory
mdelete
Delete multiple file
mdir
Make directory on the remote machine
mget
Get multiple file
mkdir
Make directory on the remote machine
mls
List content of multiple directory
mput
Send multiple file
pwd
Print working directory on remote machine
quit
Terminate ftp session and exit
rmdir
Remove directory on the remote machine
rename
Rename file
rstatus
show status of remote machine
type
set file transfer type

Example of ftp command:

[root@client ~]# ftp 210.207.201.7
ftp> mdelete  *.jpg
ftp> mput  *.jpg
ftp> mget  *.jpg
ftp> cd  /var/ftp/pub
ftp> bye

TIPS- For FTP Server

View FTP Log File:

[root@ftp ~]# tail –f /var/log/vsftpd.log

Restrict Access to Anonymous User Only: Add the following line in vsftpd.conf file

local_enable=NO

Disable FTP Upload: Edit the following line in vsftpd.conf file

write_enable=NO

USER LIMITATION: Add the following lines into the vsftpd.conf file
local_max_rate=50
max_per_ip=5
max_clients=10


Post Bottom Ad