Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 10:14:42 +0100
From:      Robert Schulze <rs@bytecamp.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Auto-dropping serial console connection: foo takeover
Message-ID:  <adf6c3b7-09ea-8bbb-6000-6dd1af8c3cc5@bytecamp.net>
In-Reply-To: <20170117095243.02c0c03b@thor.intern.walstatt.dynvpn.de>
References:  <20170117095243.02c0c03b@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Am 17.01.2017 um 09:52 schrieb O. Hartmann:
> Hello list.
> 
> Havin a FreeBSD based router connected to a service PC via serial console/null modem
> cabling, I realised that using "tip ucom1fast" gives me access to the console even if I
> simply close the terminal window (X11/xterm) and reconnect again on the very same box.
> [...]
> 
> I tried to enbale auto logout on csh, which works, I also enabled auto logout on ssh
> sessions, which works well, too. But the FreeBSD "sh" seems to be acient in a way and
> doesn't provide any kind of auto logout or auto termination of the session neither did I
> have success with /etc/login.conf and setting ":idletime=10m:".

autologout works quite well via .cshrc, but only if there is no other
command running in the shell. I.e. it won't autologout if you - for
example - call top and then close your serial connection.

regards
Robert Schulze



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?adf6c3b7-09ea-8bbb-6000-6dd1af8c3cc5>