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

Bug#611487: xterm: immediately exits upon running: exec login USER



On Sat, Jan 29, 2011 at 11:41:26PM +0100, Cyril Brulebois wrote:
> From: Cyril Brulebois <kibi@debian.org>
> To: Jeffrey Sheinberg <jeff@bsrd.net>, 611487@bugs.debian.org
> Date: Sat, 29 Jan 2011 23:41:26 +0100
> User-Agent: Mutt/1.5.20 (2009-06-14)
> Subject: Re: Bug#611487: xterm: immediately exits upon running: exec login
>  USER
> 
> Hi Jeffrey.
> 
> Jeffrey Sheinberg <jeff@bsrd.net> (29/01/2011):
> > With xterm Version: 261-1 installed, when I run this command,
> > 
> >     $ exec login USER
> > 
> > the xterm immediately exits.  This problem does not occur with prior
> > versions of xterm installed, eg, Version: 235-2.
> > 
> > Note that on my system, login is setuid root, thus enabling exec-ing
> > login from the base level shell, on e.g., tty1, pts/2, to work.
> 
> Trying that without exec:
> | $ login USER
> | No utmp entry.  You must exec "login" from the lowest level "sh"
> 
> Now, if you use ???exec???, you're replacing xterm by the login binary,
> which returns (due to wrong usage), meaning your (previously-xterm)
> process returns, which isn't exactly a bug in xterm.
> 

No - I am not replacing xterm with /bin/login, I am replacing the
(lowest level) shell with /bin/login.

In my original submission, I provided a typescript where xterm Version: 235-2
handles the exec of login without any problems.  Do you see how user
'jeff' becomes user 'jss' in that typescript? 

> The same happens with e.g. xfce4-terminal, so I guess xterm isn't at
> fault here.
> 
> Please note that I tried with the same permission as yours on login:
> | $ ls -l /bin/login
> | -rwsr-xr-x 1 root root 45384 Sep 26 15:59 /bin/login
> 
> Looks like notabug to me, but I'll wait a bit before closing it.
> 

This is a bug in xterm Version: 261-1 as I originally reported, please
see my above comments.

> KiBi.

I would guess that this bug was introduced into xterm Version: 261-1
with the new "utempter" library.

Thanks,
-- 
Jeffrey Sheinberg




Reply to: