Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.