[Xymon] Issues with no password prompt for admin cgi

Root, Paul T Paul.Root at CenturyLink.com
Thu Mar 2 15:43:19 CET 2017


Ok, you don’ t  make it easy on us. Didn’t answer any questions asked.

So, the only thing that is password protected is cgi-secure scripts. That’s fine.

I’ll ask again. Did you restart httpd?

And follow up questions.

Did you look in the httpd log files? Access and error?
Do you see a line in the access log that has a connection  to a cgi-secure script without an user in the user field?
Any error message?

What OS are you running?  If linux, is selinux enforcing? If yes, is there selinux errors trying to access the xymonpasswd file?


From: Michael Resnick [mailto:sys1002 at yahoo.com]
Sent: Thursday, March 02, 2017 3:53 AM
To: xymon at xymon.com
Subject: Re: [Xymon] Issues with no password prompt for admin cgi

Sending apache.conf  as requested :

 This is the main Apache HTTP server configuration file.  It contains the

ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    <IfModule mod_authz_core.c>
        # Apache 2.4+
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Allow from all
    </IfModule>

    # Password file where users with access to these scripts are kept.
    # Although expected in $XYMONHOME/etc/ by the useradm and chpasswd
    # scripts, files here can be read with the "config" message type,
    # which allows status-privileged clients to read arbitrary regular files
    # from the directory.
    #
    # This file should be owned and readable only by the apache server user,
    # and ideally merely a symlink to a location outside of $XYMONHOME/etc/
    #
    # Create it with:
    #    htpasswd -c /home/xymon/server/etc/xymonpasswd USERNAME
    #    chown apache:apache /home/xymon/server/etc/xymonpasswd
    #    chmod 640 /home/xymon/server/etc/xymonpasswd
    # Add more users / change passwords with: "htpasswd /home/xymon/server/etc/xymonpasswd USERNAME"
    #
    # You can also use a group file to restrict admin access to members of a
    # group, instead of anyone who is logged in. In that case you must setup
    # the "xymongroups" file, and change the "Require" settings to require
    # a specific group membership. See the Apache docs for more details.

    AuthUserFile /home/xymon/server/etc/xymonpasswd
    AuthGroupFile /home/xymon/server/etc/xymongroups
    AuthType Basic
    AuthName "Xymon Administration"

    # "valid-user" restricts access to anyone who is logged in.
    Require valid-user

    # "group admins" restricts access to users who have logged in, AND
    # are members of the "admins" group in xymongroups.
    # Require group admins

</Directory>

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170302/ff174c4a/attachment.html>


More information about the Xymon mailing list