Question

how to give non root user full permission for ftp

Posted January 30, 2016 6.1k views
WordPress

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?

1 comment

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.

×
2 answers
by Justin Ellingwood
When you start a new server, there are a few steps that you should take every time to add some basic security and set a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 14.04.

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.

Submit an Answer