LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2009, 10:25 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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
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.
 
Old 11-20-2009, 11:49 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
[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
 
Old 11-20-2009, 12:12 PM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
Sorry for the double Post.
Moderator..I am sorry for the same.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd / Apache permission tbarsness Linux - Security 3 04-18-2005 07:50 AM
No permission using Apache sanmartin Linux - Networking 2 09-22-2004 12:48 PM
SUSE 9.1 with Apache - You don't have permission... rover Linux - Networking 0 06-27-2004 01:04 PM
You don't have permission to access.. apache ?'s jester_69 Linux - General 3 09-06-2002 07:43 AM
apache permission problem Haakon Linux - Newbie 5 12-10-2001 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration