NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/47733: su messes with foreground process group



The following reply was made to PR bin/47733; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/47733: su messes with foreground process group
Date: Mon, 7 Oct 2013 07:34:15 +0000

 On Tue, Apr 09, 2013 at 12:20:01PM +0000, Taylor R Campbell wrote:
  >     su (with MKPAM=yes) messes with the foreground process group of
  >     its controlling terminal even if it is not in the foreground,
  >     with confusing consequences.
  > 
  >     It's not a priori clear to me why su needs to mess with the
  >     controlling terminal at all or leave an intermediate su process
  >     around until the subprocess exits, but it seems to have
  >     something to do with needing to bracket the subprocess by
  >     pam_open_session/pam_close_session.
 
 Yes. It is horribly bodgy. But at least nowadays the bogus extra
 process isn't your session leader.
 
 MKPAM=no is your friend unless you have some specific need for it.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index