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

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

1 Answer 1

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
1  
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

 
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.