Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am having trouble uploading files to my /var/www/html folder.

This is the current mode:

Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.).

I logged in as "user", what mod should I give to the user? I tried 777, then i can upload, but is it secure to let the user and public to read, write and execute??

THis is what it display when i run : ls -l

...
drwxr-xr-x 3 root root 4096 Mar 28 03:58 html
...
share|improve this question

1 Answer 1

Only root has write access to the directory. If you change its owner to "user", you'll get write access with the current permissions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.