vsftpd disable delete option only allow upload

on October 29 | in LAMP, Linux | by | with No Comments

Hello folks,

if you want to disable delete option via vsftpd, you can easily achieve it by adding below line at the end of vsftpd.conf

cmds_denied=DELE

 

after that restart vsftpd service ==> service vsftpd restart.

Then upload it and try to delete.

 

331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put f1.txt
local: f1.txt remote: f1.txt
227 Entering Passive Mode .
150 Ok to send data.
226 Transfer complete.
38 bytes sent in 0.00762 secs (4.99 Kbytes/sec)
ftp> ls
227 Entering Passive Mode ().
150 Here comes the directory listing.
-rw-r–r– 1 506 506 38 Oct 29 17:35 f1.txt
226 Directory send OK.
ftp> del f1.txt
550 Permission denied.
ftp> lcd /root
Local directory now /root
ftp> put install.log
local: install.log remote: install.log
227 Entering Passive Mode .
150 Ok to send data.
226 Transfer complete.
ftp> del install.log
550 Permission denied.
ftp>

 

1463 Total Views 2 Views Today
Pin It

related posts

Comments are closed.

« »