Gossamer Forum
Home : Products : Others : Fileman :

PAM Error

Quote Reply
PAM Error
Just installed Fileman, and I am getting the follwoing errors when trying to log in...

/var/log/http/error:

[Fri Feb 1 09:58:03 2002] [error] access to /home/gossamer/fileman/cgi-bin/fileman.cgi failed for 66.20.212.246, reason: AuthPamExternal [/usr/lib/authenticate]: Failed (255) for user richardw

Web page error

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g. bad password), or your browser does not understand how to supply the credentials required.

Any help would be appreciated..

Richard
Quote Reply
Re: [richardw] PAM Error In reply to
Hi,

Sounds like your password is wrong. FileMan for Raq's authenticates of /etc/passwd, and you should enter the same user/password you use for ftp.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] PAM Error In reply to
Um, I don't know what to say. You're kidding me, right? I log onto the site and on the box itself, oh, 10,000 times a day. Does anyone have an answer for my problem?

Regards,

Richard
Quote Reply
Re: [richardw] PAM Error (Workaround) In reply to
If anyone else is having this problem, here is a workaround....

As root, type:

/usr/bin/cut -f 1-2 -d ":" /etc/shadow |grep admin >/etc/.htpasswd

using your favorite editor as root, edit the httpd.conf file...

pico /etc/httpd/conf/httpd.conf

In the fileman entry, add the line...

AuthUserFile /etc/.htpasswd

Save the file and exit - oh, don't forget to get rid of that PAM line at the end...

Restart the webserver, HARD...

/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start

Go to http://wwww.domain.com/fileman/fileman.cgi

Regards,

Richard
Quote Reply
Re: [richardw] PAM Error (Workaround) In reply to
>
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
<

FWIW:

/etc/rc.d/init.d/httpd restart

Last edited by:

RedRum: Feb 1, 2002, 1:05 PM
Quote Reply
Re: [RedRum] PAM Error (Workaround) In reply to
I said restart it hard - sometime restart doesn't reread the config file, depending on the version of apache - if you do it hard, you know it's been done.

Regards,

Richard
Quote Reply
Re: [richardw] PAM Error In reply to
Hi,

Well I thought I'd try the obvious one first. The problem with the fix you mentioned is you are no longer authenticating via auth_pam, and you lose the ability to run as any valid site admin unless you manually maintain a separate password list.

Some questions:

1. Is it only user 'admin' that you are having problems with?
2. What system are you running (output of uname -a and cat /etc/build)
3. Have you made any changes related to Pam or server authentication?

I can't find any references to /usr/lib/authenticate or PamAuthExternal on google, so I'm at a loss to what the error pam is generating means. One possible idea is that you've removed the setuid bit from /usr/lib/authenticate. Does it look like:

-rwsrwxr-x 1 root root 44360 Jul 23 2001 /usr/lib/authenticate

I'd love to hear what you find out,

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] PAM Error In reply to
1. No, all virtual site admins

2. 2.2.16C28_III, build 1.84 for a 3001R in en_US

3. No, I haven't made any changes to PAM

4. -rwsrwxr-x 1 root root 44360 Jul 23 2001 authenticate

Yeah, I tried the search engines too - and no man page for authenticate.

Thanks for trying..

Richard