[courier-users] --disable-root-check fix

2003-12-01 Thread Andreas Erhart
Hi,

the --disable-root-check option for configure is broken since 0.44.1. The 
reason is a typo in the configure script.

here is also a patch for it:

SNIP---
diff -Nru courier-0.44.1/configure courier-0.44.1-ae/configure
--- courier-0.44.1/configure2003-11-28 02:05:09.0 +0100
+++ courier-0.44.1-ae/configure 2003-11-28 21:16:21.0 +0100
@@ -18942,7 +18942,7 @@
 # Check whether --enable-root-check or --disable-root-check was given.
 if test ${enable_root_check+set} = set; then
   enableval=$enable_root_check
-  rootcheck=$withval
+  rootcheck=$enableval
 else
   rootcheck=yes
 fi;
---SNIP---

regards

-- 
Andreas Erhart
An der Gruenwalder Bruecke 2
82049 Pullach im Isartal
Tel.: +49(0)89/7931743
Fax: +49(0)89/79312150
Mobil: +49(0)172/9869197
email: [EMAIL PROTECTED]
www: http://www.zollhaus.net


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] --disable-root-check ?

2002-05-03 Thread Rick Updegrove

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: [EMAIL PROTECTED]
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] --disable-root-check ?

2002-05-03 Thread John Runnels

I am having the same errors ?? HELP !!


someone tell us if you have seen this problem.

John Runnels
Rick Updegrove [EMAIL PROTECTED] wrote ..
 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: [EMAIL PROTECTED]
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] --disable-root-check ?

2002-05-03 Thread David M. Stowell

On 2002.05.03 17:12 Rick Updegrove wrote:
 
 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:

 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.

The problem you are having in installation is somewhat curable, though 
not something I've had to deal with in a while. As I'm sure Sam will 
emphasize, executing *any* action, espeecially a complex one like 
building courier, has the potential to destroying your system. As a 
metter of course, one shouldonly resort to root login and su when they 
are appropriate and needed, and at no other time.

David Stowell

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



RE: [courier-users] --disable-root-check ?

2002-05-03 Thread Bill Michell

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.

--
Bill Michell
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rick
Updegrove
Sent: 03 May 2002 23:12
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users