Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have a strange problem. I gave a directory ci with chmod 777 ci permission. The ls -l command shows

drwxrwxrwx. 5 root root 4096 Jan 1 18:08 ci

But when I tried to create a file innetbeans, it shows The target folder is read-only. What is wrong?

share|improve this question
Is the mount point where the directory is located mounted as read-only? – Aluísio A. S. G. Jan 11 '13 at 4:20
It is in root directory../var/www/html – Nitish Jan 11 '13 at 4:28
up vote 1 down vote accepted

It's a server problem. This is happening because your directory needs server permission to write. Try this as root user:

chmod 7777 -R ci

(here 4th 7 is for server permission )

share|improve this answer
What do you mean by "server permission"? – Aluísio A. S. G. Jan 11 '13 at 5:58
Actually I'm not sure it's related to the actual problem or not. It's like whenever file or directory is created on server by remote client than you need server permission to create those file for remote client. – Hardik Sondagar Jan 11 '13 at 17:47

Your Answer


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.