By sobwoofer8
I installed ISPConfig and an ftp server pure-ftpd. Now I can not change the access rights for files and folders in FTP client.
'/web/engine/cache' '777'
SITE CHMOD 777 cache
550 Could not change perms on cache: Operation not permitted
Config in place for some reason is not. How do I fix permissions for FTP users? Ubuntu 14.04
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi Sobwoofer,
There are a few things to know about files permissions managed throught pure-ftpd service.
groupadd ftpgroup
--> this will return you the ftpgroup id (gid)
pure-pw useradd <login> -u <uid> [-g <gid>]
pure-pw mkdb, you can worry about the directories rights.The Chmod directive is controlled by UNIX rights. So, if you want FTP users to be able to interact with folders (dir1,dir2,dir3) in the root of your FTP server (/mnt/ftp), then they will have to belong at least to the “ftpgroup”, with writing rights for the ftpgroup group :
mkdir -p /mnt/ftp/{dir1,dir2,dir3} && chown -R ftpuser:ftpgroup /mnt/ftp && chmod g+w -R /mnt/ftp
If your pure-ftp service is configured to allow Chmod directives, and configured to chroot ftpusers directly in your FTP root, then you should not encounter that problem any more.
Hope this could help,
Regards,
– rustx
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.