OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: INSTALL.sh
From: Wietse Venema (wietseporcupine.org)
Date: Sun May 21 2000 - 19:33:04 CDT


Warning, test -f follows symlinks.

        Wietse

Matthias Andree:
> mdlinux.it (Marco d'Itri) writes:
>
> > This check is wrong:
>
> No.
>
> > if [ -f /usr/lib/sendmail ]
> > then sendmail_path=/usr/lib/sendmail
> > else sendmail_path=/usr/sbin/sendmail
> > fi
> >
> > On a FHS-compliant linux system (I don't know any which is not in this
> > regard) the sendmail binary is installed as /usr/sbin/sendmail and
> > /usr/lib/sendmail is a compatibility symlink.
>
> Please note that this symlink will not trigger the "then" branch of that
> test.
>
> Ask bash about "test": (bash is assumedly *the* default shell for Linux)
>
> $ help test
> test: test [expr]
> ...
> File operators:
> ...
> -f FILE True if file exists and is a regular file.
> ... --------------
>
> > If the user does not override the default choice, "correct" programs will
> > still use Berkeley sendmail by calling /usr/sbin/sendmail.
>
> Probably not.
>
> > I tried running the pipe mailer without privileges (because at least on
> > debian systems uux is setuid uucp and rmail does not need to be run with
> > as a special user) but pipe/pipe.c::drop_privileges() fails with:
>
> Never seen these on SuSE Linux 6.2, running uux since early February.
>
> master.cf excerpt (*BEWARE* I removed the -r (syn. --nouucico) option
> which means this configuration will call upon uucico immediately which
> is probably not what you want if you use UUCP externally)
>
> uucp unix - n n - - pipe
> flags=F user=uucp argv=/usr/bin/uux -n -a$sender - $nexthop!rmail ($recipient)
>
> $ ls -l /usr/bin/uux
> -r-sr-sr-x 1 uucp uucp 90384 Jul 23 1999 /usr/bin/uux
>
> SuSE Linux 6.2 with a Taylor UUCP.
>
> > May 21 14:34:11 wonderland postfix/pipe[1321]: fatal: set_eugid: seteuid(0): Operation not permitted
>
> See that user= argument in master.cf.
>
> --
> Matthias Andree
>
> Where do you think you're going today?
>
>
>
>