How to Configure FTP Server
Create a ftp user in linux
#useradd shahzad
#passwd shahzad
now use chattr command to prevent user not to delete threir own data
#/usr/bin/chattr -R +a /home/shahzad/*
Note: It will prevent user for deleting their own data, but when you will notice that user is able to delete data from under subfolder. Hence you will need to run this command using cron job so that in every second, recursively it prevent user not to delete data from any location.
set cronjob
#crontab -e
*/1 * * * * /usr/bin/chattr -R +a /home/shahzad/*
unset the permission if require for single file or directory
#/usr/bin/chattr -R +a /home/shahzad/file_name
unset all data
##/usr/bin/chattr -R +a /home/shahzad/*
Create a ftp user in linux
#useradd shahzad
#passwd shahzad
now use chattr command to prevent user not to delete threir own data
#/usr/bin/chattr -R +a /home/shahzad/*
Note: It will prevent user for deleting their own data, but when you will notice that user is able to delete data from under subfolder. Hence you will need to run this command using cron job so that in every second, recursively it prevent user not to delete data from any location.
set cronjob
#crontab -e
*/1 * * * * /usr/bin/chattr -R +a /home/shahzad/*
unset the permission if require for single file or directory
#/usr/bin/chattr -R +a /home/shahzad/file_name
unset all data
##/usr/bin/chattr -R +a /home/shahzad/*
I gathered as much knowledge regarding to the Linux, web sever and database server from your site.Keep on updating with more interesting topic.
ReplyDeleteMoreover to recover the lost file from Linux Click on:
android data recovery review
launch android data recovery
backup and restore android apps and data
android backup app data
recover lost files
diskdigger pro file recovery