Dale Walsh wrote:
On Dec 9, 2005, at 04:49 , Joachim Schoenberg wrote:
Hello Dale,
2. configure finds user "www" in /etc/passwd,
but in fact the user is "wwwrun".
So "make" complains about missing user "www" later.
I used --with-user, but I thing configure does wrong parsing.
If it's finding www in /etc/passwd then the user is in it.
No, it isn't.
Only "wwwrun" is there.
If "www" would exist "make" would not complain about
missing user www later.
You state that configure finds user www in /etc/passwd, if the user
is not there then it shouldn't find it.
I set a default user (www) if this is not the user your web server
runs under then you use the user/group of the user that does.
OK, that's clear, but the problem was:
configure seems to find that user even if doesn't exist.
do:
cat /etc/passwd | grep www
and see what it's matching on.
Yes, I see now, a regular grep, needs refinement, I'm extremely busy
however, if someone has a solution for the various methods of user
checking I'd be happy to add it as soon as time permits.
That's simple. since www is contained in our user name it returns:
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
> webuser=`cat /etc/passwd|grep $web_user`
maybe you should egrep for: "^www:" to see if a user www really exists...
and that cat is inneccessary since grep can read files too...
maybe something like
webuser=`grep -e "^$web_user:" /etc/passwd`
If this returns something that user exists for sure.
if it fails it should inform of the two options to specify uid and gid...
Matt
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/