I have a CentOS Machine running with Web Services. I have an application to run which needs a user permission to write to /var/www ( DOCROOT) directory.As I can see that apache user can only write/ access the DOCROOT(correct me if I am wrong?). As of now my directory strcuture is:
Code:
[root@mon35 www]# ls -la
total 92
drwxr-xr-x 11 root root 4096 Nov 20 18:06 .
drwxr-xr-x 25 root root 4096 Nov 20 17:50 ..
drwxrwsr-x 2 bent bent 4096 Oct 30 22:20 becon
drwxr-xr-x 2 root root 4096 Jan 16 2008 cgi-bin
drwxr-xr-x 3 root root 4096 Nov 20 17:46 error
drwxr-xr-x 2 root root 4096 Jan 16 2008 html
drwxr-xr-x 3 root root 4096 Nov 20 17:48 icons
drwxrwxr-x 2 bent bent 4096 Nov 20 18:44 imgs
-rw-r--r-- 1 bent bent 3771 Oct 30 22:20 index.html
drwxrwsr-x 2 bent bent 4096 Oct 30 22:20 js
drwxr-xr-x 14 root root 4096 Nov 20 17:48 manual
drwxr-xr-x 2 webalizer root 4096 Nov 20 19:02 usage
-rw-rw-r-- 1 bent bent 9908 Oct 30 22:20 watcher.php
[root@mon35 www]#
How can I give permission to bent user to write to www directory.
Pls Suggest.