Uw opmerkingen
Well, lets say i have a production site. With lots of configs and vulnerable files.
And i have a folder, called "docs", where are many many files, images, pdfs and so on, uploaded through years by some coworkers.
I don't want them to see or touch website files, and i want them to have access only to that "docs" folder.
Thats the issue of having few ftp account for one site.
And i have a folder, called "docs", where are many many files, images, pdfs and so on, uploaded through years by some coworkers.
I don't want them to see or touch website files, and i want them to have access only to that "docs" folder.
Thats the issue of having few ftp account for one site.
Customer support service by UserEcho
I have temporary solution.
Temporary, because after restarting pure-ftpd from ajenti cp widget, those settings has been reseted.
Also will try to make it permanent with file permissions.
I did chmod 444 /etc/pure-ftpd/pure-ftpd.conf and will see if it helps.
What i did is.
1. nano /etc/pure-ftpd/pure-ftpd.conf
Add this line:
PassivePortRange 30000 35000
2. In firewall rules in RAW EDIT add those lines
-A INPUT --protocol tcp --match state --state NEW --match tcp --destination-port 21 -j ACCEPT
-A INPUT --protocol tcp --destination-port 30000:35000 -j ACCEPT
Then
Save and apply firewall rules and restart pure-ftpd service
service pure-ftpd restart
Also if You would like to change pure-ftpd welcome message (motd):
nano /etc/init.d/pure-ftpd
second line in start section have to look like this
daemon "$pure_launch_script $pure_config --daemonize > /dev/null -F /etc/pure-ftpd/welcome.msg"
full start section
start() {
echo -n $"Starting $prog: "
daemon "$pure_launch_script $pure_config --daemonize > /dev/null -F /etc/pure-ftpd/welcome.msg"
RETVAL=$?
[ $RETVAL = 0 ] && touch /var/lock/subsys/pure-ftpd
echo
}
After that create file
nano /etc/pure-ftpd/welcome.msg
And put there Your welcome message.
service pure-ftpd restart
And You good to go