Solved !! (with a little help ...)
for the archive ... here's the solution
the config.h contains :
#define SERVER_UIDS 72 /* user "nobody" */
So I Changed this to the UID that apache is running on and recompiled.
Than did a su (with '-m' since apacha uses /sbin/nologin)
# su -m apache
And now I can run pwauth as apache user :
bash-2.05b$ ./pwauth
user
pwd
bash-2.05b$ echo $?
0
bash-2.05b$
user
pwd
bash-2.05b$ echo $?
0
bash-2.05b$
next time I 'll RTFM three times in stead of only two :-)
regards,
Koen.
To: users@httpd.apache.org
From: [EMAIL PROTECTED]
Date: 14/03/2006 17:40
Subject: [EMAIL PROTECTED] pwauth does not run as user
Hi,
I want to use pwauth for authentication on my apache.
I downloaded pwauth-2.3.2.tar.gz and compiled it.
Than I installed it in /usr/local/bin and "suid root" it (chmod +s pwauth)
[EMAIL PROTECTED]:/usr/local/bin]# ll pwauth
-rwsr-sr-x 1 root root 16517 Mar 14 17:06 pwauth
When I run it as root, it 's working fine :
[EMAIL PROTECTED]:/usr/local/bin]# ./pwauth
myuser
mypasswd
[EMAIL PROTECTED]:/usr/local/bin]# echo $?
1
But when I change to a normal user and run it, it doesn't even give me the
option to enter a user/password
[EMAIL PROTECTED]:/usr/local/bin]# su admin
[EMAIL PROTECTED]:/usr/local/bin]$ ./pwauth
[EMAIL PROTECTED]:/usr/local/bin]$
I'm sure I'm missing something pretty basic ... but what ??
Thanks in advance,
Koen.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See