Skip Menu |
 

Download (untitled) / with headers
text/plain 3.5KiB
From ppomes@Qualcomm.com Mon Dec 23 17:32:52 1996
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id RAA00536 for <bugs@RT-11.MIT.EDU>; Mon, 23 Dec 1996 17:32:52 -0500
Received: from zelkova.qualcomm.com by MIT.EDU with SMTP
id AA08829; Mon, 23 Dec 96 17:32:51 EST
Received: (from ppomes@localhost)
by zelkova.qualcomm.com (8.8.4/8.8.4)
id OAA01865; Mon, 23 Dec 1996 14:32:48 -0800 (PST)
Message-Id: <199612232232.OAA01865@zelkova.qualcomm.com>
Date: Mon, 23 Dec 1996 14:32:48 -0800 (PST)
From: Paul Pomes <ppomes@Qualcomm.com>
Reply-To: ppomes@Qualcomm.com
To: krb5-bugs@MIT.EDU
Subject: krb5-send-pr tests for mailer presence with -r instead of -x
X-Send-Pr-Version: 3.99

Show quoted text
>Number: 323
>Category: krb5-misc
>Synopsis: krb5-send-pr test for mailer fails for unreadable executeables
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tlyu
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Mon Dec 23 17:33:00 EST 1996
>Last-Modified: Wed Mar 19 19:00:47 EST 1997
>Originator: Paul Pomes
>Organization:
QUALCOMM, Inc.
6455 Lusk Blvd
San Diego, CA 92121-2779
Show quoted text
>Release: 1.0
>Environment:
Sparc-20, Solaris 2.4
System: SunOS zelkova 5.4 Generic_101945-27 sun4m sparc


Show quoted text
>Description:
When /usr/lib/sendmail is installed mode 4511, it is unreadable by
users. The MAIL_AGENT selection code in src/util/send-pr/send-pr.sh
uses -r (is the file readable) test instead of -x (is the file
executeable). It falls through to just "sendmail -oi -t" which
fails if /usr/lib is not part of the path on a Solaris host.
Show quoted text
>How-To-Repeat:
Install sendmail as /usr/lib/sendmail, mode 4511.
Run krb5-send-pr as a vanilla user and w.o. /usr/lib in $PATH.
After the bug report has been collected, krb5-send-pr will exit
with a 'mysterious mail failure' message.
Show quoted text
>Fix:
Change to -x to test for executeables.

*** send-pr.sh 1996/12/23 22:31:36 1.1
--- send-pr.sh 1996/12/23 22:31:49
***************
*** 56,64 ****
# What mailer to use. This must come after the config file, since it is
# host-dependent.
MAIL_AGENT="/usr/lib/sendmail -oi -t"
! if [ ! -r `echo $MAIL_AGENT|sed 's/ .*//'` ] ; then
! ( [ -r /usr/lib/sendmail ] && MAIL_AGENT="/usr/lib/sendmail -oi -t" ) || \
! ( [ -r /usr/sbin/sendmail ] && MAIL_AGENT="/usr/sbin/sendmail -oi -t " ) || \
MAIL_AGENT="sendmail -oi -t "
fi

--- 56,64 ----
# What mailer to use. This must come after the config file, since it is
# host-dependent.
MAIL_AGENT="/usr/lib/sendmail -oi -t"
! if [ ! -x `echo $MAIL_AGENT|sed 's/ .*//'` ] ; then
! ( [ -x /usr/lib/sendmail ] && MAIL_AGENT="/usr/lib/sendmail -oi -t" ) || \
! ( [ -x /usr/sbin/sendmail ] && MAIL_AGENT="/usr/sbin/sendmail -oi -t " ) || \
MAIL_AGENT="sendmail -oi -t "
fi

Show quoted text
>Audit-Trail:

From: "Theodore Y. Ts'o" <tytso@MIT.EDU>
To: krb5-bugs@MIT.EDU, ppomes@Qualcomm.com
Cc: krb5-unassigned@RT-11.MIT.EDU, gnats-admin@RT-11.MIT.EDU,
krb5-prs@RT-11.MIT.EDU
Subject: Re: krb5-misc/323: krb5-send-pr tests for mailer presence with -r instead of -x
Date: Mon, 23 Dec 1996 18:03:42 -0500

The problem is that -x isn't portable. We'll have to use -f, I suspect.

Responsible-Changed-From-To: krb5-unassigned->tlyu
Responsible-Changed-By: tlyu
Responsible-Changed-When: Wed Mar 19 19:00:23 1997
Responsible-Changed-Why:

mine

State-Changed-From-To: open-closed
State-Changed-By: tlyu
State-Changed-When: Wed Mar 19 19:00:29 1997
State-Changed-Why:

This is covered by krb5-misc/400; followups should go there.

Show quoted text
>Unformatted: