On Sun, Jul 07, 2002 at 08:51:11AM -0500, Allyn Baskerville wrote:
> I have mon running and alerting properly; mon.cgi is also running, and I
> initially configured the auth.cf file to allow everything. I had full change
> capability from mon.cgi. However, when I try to restrict things in auth.cf,
> the authentication does not work at all when I try to make a change for
> either authtype = userfile or authtype = getpwnam. For the former, I created
> userfile with the format name:crypt_passwd on each line. When I log in to
> mon.cgi and attempt to change something, the following error pops up:
> 
> Could not successfully execute command ... with arguments ...
> 520 command could not be executed (perhaps you don't have permissions in
> auth.cf?)
> 
> The same thing happens when I log on to a valid account on the machine for
> authtype = getpwnam. Also, what is the authdir for in the mon.cf config
> file? Any help would be greatly appreciated. Allyn

I have the following two lines in my mon.m4 file:

authtype = userfile
userfile = /etc/httpd/conf/htpasswd.users

I created /etc/httpd/conf/htpasswd.users using htpasswd from apache.
I'm using it to authenticate web site users too.

It works with no problems.

If you want to use /etc/passwd for authentication you probably need Authen-PAM 
perl module.

HTH, -Kastus

-- 
Konstantin 'Kastus' Shchuka
Unix System Administrator
ePocrates Inc.
tel 650.232.4886
fax 650.592.6995

Reply via email to