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

Just got SQLite up and running on a new linode - but I couldn't make it work til I read some info that says the server must have write permissions for both the directory and the file -- okay fine.

So I made the directory 0777 permissions -- which is probably bad. How do I go about doing this properly?

share|improve this question
What distro are you running? – Weboide Jun 22 '10 at 22:09
up vote 3 down vote accepted

Basically, give ownership of that folder to the to the user the webserver is running as. (usually "nobody"). chown <user> <folder> is the command to do that. Then, only the first trio of permissions is useful. So 700 permissions would alow the webuser to access and write to the directory, and no one else to even read it.

--Christopher karel

share|improve this answer
Web server on unbuntu apparently runs as 'www-data' -- although I think I remember 'nobody' being the user/group on Solaris. Thanks for the help! – ESW Jun 23 '10 at 0:48

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.