Question

how to give non root user full permission for ftp

hi, somehow i delete a folder & all its files from filezilla. now i cant upload any files to that folder using non root user. it always says

Error: /wp-includes/js/zxcvbn.min.js: open for write: permission denied Error: File transfer failed

but when i login using root user, all files of that folder is there. how can i give root permission to that user so that it can write/change anything through filezilla just like root user.

i just checked the folder permission by “ls -l” and it was like this

-rw-r–r-- 1 www-data www-data 324 Jan 30 16:38 zxcvbn-async.min.js -rw-r–r-- 1 www-data www-data 698775 Jan 30 16:38 zxcvbn.min.js

any idea how can i make my non-root user to upload files there?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am having the same problem and can’t find a fix.

I have a sudo user and when I login with that user to my sftp, I can’t upload or write any file.