Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 1997 08:52:21 -0600 (CST)
From:      "Kent S. Gordon" <kgor@chess.inetspace.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/2777: sudo does not wait for password entry
Message-ID:  <199702201452.IAA10950@chess.inetspace.com>
Resent-Message-ID: <199702201500.HAA16016@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2777
>Category:       ports
>Synopsis:       sudo does not wait for password entry
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 20 07:00:01 PST 1997
>Last-Modified:
>Originator:     Kent S. Gordon
>Organization:
INetSpace
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:
FreeBSD chess.inetspace.com 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Fri Feb 14 06:01:59 CST 1997     root@chess.inetspace.com:/usr/src/sys/compile/CHESS  i386

>Description:
 sudo does not wait for password to be entered so the command always fails.

>How-To-Repeat:
sudo ls

This will print a password prompt, but return without waiting for the
password to be entered.


>Fix:
This is probably not the best fix.  Something has changed in -current,
so the tgetpass function no longer works.  I found that using the
system getpass worked.
Change Makefile to add --with-getpass to the compile options.
Here is the patch.

*** /usr/ports/security/sudo/Makefile.fix	Thu Feb 20 08:15:45 1997
--- /usr/ports/security/sudo/Makefile	Tue Nov 26 09:27:10 1996
***************
*** 15,21 ****
  MAINTAINER=	erich@rrnet.com
  
  HAS_CONFIGURE=	yes
! CONFIGURE_ARGS=	--with-C2 --with-fbsdops --with-getpass
  WRKSRC=		${WRKDIR}/sudo.v1.5.3
  MAN5=		sudoers.5
  MAN8=		sudo.8 visudo.8
--- 15,21 ----
  MAINTAINER=	erich@rrnet.com
  
  HAS_CONFIGURE=	yes
! CONFIGURE_ARGS=	--with-C2 --with-fbsdops
  WRKSRC=		${WRKDIR}/sudo.v1.5.3
  MAN5=		sudoers.5
  MAN8=		sudo.8 visudo.8
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702201452.IAA10950>