How can I make a directory to allow write access for me (user) and wwwrun, but
not for everybody else?

background:

I have kind of a self made cms in php that creates my web pages and writes
them into directories on my local computer. If these are my own directories
their rights are drwxr-xr-x and therefore wwwrun cannot write into them. If I
give write rights to everyone, then wwwrun can write into the directory, of
course.

If you use a cms, only wwwrun would need to have write access to the
directory. Why don't use change the owner to wwwrun?

But how can I achieve, that *only* me and wwwrun can write into that
directory?

www being wwwrun's group

chown -R me.www /path_to/your_folder
chmod -R 775 /path_to/your_folder

Regards,

Gaël

Reply via email to