New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help with FTP setup
Hi there,
I am using CentminMod for my server setup. (i.e. using nginx + php-fpm - Mariadb).
CentminMod doesn't install any FTP software, It has been fine since now. But I need to give a developer access to WP install folder to make some changes to theme and a custom plugin. (Server running WordPress).
Considering to install Vsftpd but not sure hot to limit it's access to /home/nginx/domains/domain.com/public/ only. And how to make it work with nginx? (Since all files are currently owned by nginx:nginx)
So how to make ftpuser upload files that can work without causing any error.
Any help will be appreciated.
Thanks
Comments
Use pure-ftpd with puredb
Easy and Simple:
why not just use SFTP in FileZilla
I need to give developer access to just one directory. (Never setup FTP like that before)
Also files are owned by nginx:nginx in the current setup. How can a user "ftpuser" upload files that can work with current setup?
Have you used CentminMod?
Thanks .. Going to try this ... Any helping link ?? (Server is running CentOS 6.5)
http://www.simplehelix.com/blog/screencasts/installing-and-configuring-pure-ftpd-on-centos-6/
Thank you so much
That worked perfectly ..
wow thanks @StartledPhoenix, I am so adding this to Centmin Mod
waves at @MASK
I was really thinking to submit a thread regarding this on the forum, I really love centminmod & all of the servers are installed with centminmod & it would be great to have FTP options under it
Best of luck !
adding it to Centmin Mod .08 beta right now https://community.centminmod.com/threads/how-to-help-test-08-centos-7-betas-with-github-code.813/ for testing - will enable SSL TLS mode so forced to only be able to connect via FTP explicit SSL so should be in the code in next 24-48hrs
@Sady @MASK added pure-ftpd support into centmin.sh menu option 2 when creating Nginx vhosts - full example at https://community.centminmod.com/threads/how-to-help-test-08-centos-7-betas-with-github-code.813/page-13#post-10138
@StartledPhoenix thanks again !
wow, its just a ftp access? or every user is isolated? @eva2000
@traceray every user is isolated
@eva2000 Even if a user has a wordpress compromised by a plugin, or any type of vulnerability that permits a malicious user upload a webshell and execute it ?
Obviously not, thats impossible.
yeah as @William touched on that ain't possible with pure-ftpd implementation..
for web shells better to plug into php-fpm.conf
php_admin_value[disable_functions] = shell_exec
also install Centmin Mod addon for maldet + clamav antivirus and malware (including php shells) https://community.centminmod.com/threads/maldet-linux-malware-detect-addon-discussion.846/ along with pushover.net push notifications to mobile and tablet devices when viruses and malware are detected
No problem, glad to help!
>
It really can't be more faster than it (Y) You're really great.
BTW No love for CentOS 6 ?
Centmin Mod .08 beta supports CentOS 6.x just it's beta due to testing CentOS 7.x compatibility. Also works with Oracle Linux 6.x too if you want a newer software and kernel version equivalent of CentOS 6.x https://community.centminmod.com/threads/oracle-linux-6-5-minimal-install-on-vultr-kvm-vps-server.1236/ without CentOS 7.x's systemd system
@mask
maybe its good to know that whenever you have SSH running on a server it also acts as SFTP server, try connecting to your SSH port with SFTP protocol using Filezilla - just use the same login details of the user account.