LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-06-2009, 06:18 AM   #1
dbmacartney
Member
 
Registered: Mar 2007
Location: London, UK
Distribution: Debian, Red Hat Enterprise, Fedora
Posts: 70

Rep: Reputation: 15
Question AD user login to Nagios - unable to execute CGI scripts in apache


Hi everyone

I have a nagios server monitoring around a 1000 hosts in our office. To make things easier, i've integrated apache into Active Directory for the website authentication. This works perfectly, however the Nagios website uses alot of CGI scripts to display information

I get the message below when trying to show CGI scripts with an AD user. Local users work fine.


403 Forbidden

You don't have permission to access /nagios/cgi-bin/status.cgi on this server.


Has anyone had any experience with CGI permissions in Apache for remote user authentication? I tried adding the AD users to the cgi.conf file within Nagios (which works for local accounts) but it doesn't seem to work even with this change.







Thanks for any suggestions.



Mac
 
Old 10-07-2009, 03:33 PM   #2
clemk
LQ Newbie
 
Registered: Oct 2008
Location: Cambridgeshire, England, UK
Distribution: linpus linux lite on Acer Aspire One
Posts: 1

Rep: Reputation: 0
I'm not familiar with Nagios, but, if apache is executing those CGI scripts, then the problem is likely that the user the apache process is running as does not have execute permissions on the scripts or access to containing directory. On the Solaris web servers running Apache 2.2 that I work on, the apache server runs as the nobody user, so, we set the ownership of the cgi directory and the scripts it contains to nobody and the group to the one used by our web server admins (which the nobody user is NOT a member of) and set the permissions to 570 on both the directory and the executable scripts.
That insures that "nobody" can read and execute the CGI scripts.

Derek
 
  


Reply

Tags
apache, directory, nagios



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
"apache" user in cgi-bin scripts cool47 Linux - Server 3 08-10-2008 05:27 PM
Apache 2.2: Execute CGI script from user directory jf.argentino Linux - Server 6 05-14-2008 03:21 AM
how to execute shell scripts from cgi script rajatgarg Linux - General 1 07-08-2004 01:39 PM
Apache Config for users to execute CGI scripts CragStar Linux - General 9 01-20-2003 12:37 AM
Can't execute *.cgi scripts. BrianG Linux - General 1 04-11-2001 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:55 AM.

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