Need help with Apache Permission?
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 |
[QUOTE=your_shadow03;3764049]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 change the file ownership so apache can write to www dir. any user that access via web is running as the apache user anyway |
Sorry for the double Post.
Moderator..I am sorry for the same. |
All times are GMT -5. The time now is 03:11 PM. |