5 messages in net.sourceforge.lists.courier-usersRE: [courier-users] --disable-root-ch...
FromSent OnAttachments
Rick UpdegroveMay 3, 2002 3:20 pm 
Bill MichellMay 3, 2002 4:13 pm 
David M. StowellMay 3, 2002 4:14 pm 
John RunnelsMay 3, 2002 4:14 pm 
Bill MichellMay 3, 2002 5:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [courier-users] --disable-root-check ?Actions...
From:Bill Michell (bi@mics.org.uk)
Date:May 3, 2002 4:13:41 pm
List:net.sourceforge.lists.courier-users

The user you are trying to compile as does not have permission to access the vpopmail library. root, of course, does.

If you fix your permissions, you should be able to compile non-root.

You really don't want things to be compiled as root if you can avoid it, since any setguid programs owned by root can trash your entire system if they feel like it (or if a hacker makes them). So its just a (very sensible) security precaution.

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Rick Updegrove Sent: 03 May 2002 23:12 To: cour@lists.sourceforge.net Subject: [courier-users] --disable-root-check ?

Hello,

I am using courier-imap-1.1 from ports on OpenBSD 2.9 with qmail and vpopmail.

I would like to install courier-imap-1.4.4

When I try to do so I get the following error upon running gmake.

gmake[1]: Entering directory `/var/imap/courier-imap-1.4.4/authlib' gcc -I/var/vpopmail/include -g -O2 -Wall -I.. -I./.. -o authvchkpw modauthvchkpw.o libauthmod.a libauth.a ../md5/libmd5.a ../sha1/libsha1.a -L/var/vpopmail/lib -lvpopmail -lm ld: -lvpopmail: no match collect2: ld returned 1 exit status gmake[1]: *** [authvchkpw] Error 1 gmake[1]: Leaving directory `/var/imap/courier-imap-1.4.4/authlib' gmake: *** [all-recursive] Error 1

Ok so just for the heck of it I decided to see if it would compile as root, which it does. Now, because I read the documentation I know that is not the way it was mean to be installed, but I cannot fifure out why yet.

When I look at the Makefile for the (working) ports version I see the following:

# $OpenBSD: Makefile,v 1.4 2000/10/01 13:27:13 avsm Exp $ <snip> CONFIGURE_ARGS= --disable-root-check --datadir=${PREFIX}/sbin </snip>

Ok my question is:

Should I ./configure --disable-root-check

and then gmake as root? etc. If not why not? I know I am not supposed to gmake as root but I am not sure why. I have been looking around for a written explanation of when --disable-root-check is needed/adviseable but so far I haven't located anything.

If anyone knows what I should doin order to install and use courier-imap-1.4.4 on my system please advise.

Thank you.

Rick Up

Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: band@sourceforge.net