Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 13:00:00 GMT
From:      Eugene Grosbein <egrosbein@rdtc.ru>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/61355: login(1) does not restore terminal ownership on exit
Message-ID:  <201304281300.r3SD000v055018@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/61355; it has been noted by GNATS.

From: Eugene Grosbein <egrosbein@rdtc.ru>
To: bug-followup@FreeBSD.ORG
Cc:  
Subject: Re: bin/61355: login(1) does not restore terminal ownership on exit
Date: Sun, 28 Apr 2013 19:56:57 +0700

 Hi!
 
 Please note that this problem was first reported over 9 years ago.
 
 The problem is still here with 9.1-STABLE. However, visual effects has changed again.
 
 That's what do we have now. First, login via ssh as user "eugen":
 
 $ tty
 /dev/pts/1
 $ w | grep pts/1
 eugen      pts/1    eg.sd.rdtc.ru            19:44       - grep pts/1
 
 Than, use /usr/bin/login to become user "support":
 
 $ login support
 
 Password:
 FreeBSD 9.1-STABLE (K-45-MONITOR) #7: Thu Mar 28 16:18:06 NOVT 2013
 ...
 Edit /etc/motd to change this login announcement.
 $ tty
 /dev/pts/1
 $ w | grep pts/1
 eugen      pts/1    eg.sd.rdtc.ru            19:44       - grep pts/1
 support    pts/1    -                        19:46       - grep pts/1
 
 In this version, login just added another record to utmp. That's just fine.
 
 Now leave nested session:
 
 $ exit
 logout
 $ w|grep pts/1
 eugen      pts/1    eg.sd.rdtc.ru            19:44       - grep pts/1
 $ ls -l `tty`
 crw--w----  1 support  tty  0x96 28 Сав 19:47 /dev/pts/1
 $ screen
 Cannot open your terminal '/dev/pts/1' - please check.
 
 As you can see, original problem is still here: terminal ownership has not been restored.
 
 Eugene Grosbein



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