From owner-freebsd-questions@freebsd.org Tue Jan 17 09:23:16 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8B89CB0478 for ; Tue, 17 Jan 2017 09:23:16 +0000 (UTC) (envelope-from rs@bytecamp.net) Received: from mxout01.bytecamp.net (mxout01.bytecamp.net [212.204.60.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7D0741641 for ; Tue, 17 Jan 2017 09:23:15 +0000 (UTC) (envelope-from rs@bytecamp.net) Received: by mxout01.bytecamp.net (Postfix, from userid 1001) id 894A553A806; Tue, 17 Jan 2017 10:14:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bytecamp.net; h=subject:to:references:from:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding; s=20140709; bh=wfQgKut+6gRCTC18FM/cPPc9saI=; b=m8E2OQor0kgj1ncGuR6o0uU7emjp6qV/XiDFDCu2hsHLapE2z7x3vZePKhKydPBWQgk+o/3GTpzsB2qbWiiut/WbdvN8h/V2MOxylPGnlpdHh1Aue/vlrrXkd9A8W+5oCy2AZdq9yCF7skZh5idxlOuVWmvNyuygTPLDjbJ1syg= Received: from mail.bytecamp.net (mail.bytecamp.net [212.204.60.9]) by mxout01.bytecamp.net (Postfix) with ESMTP id 571FA53A812 for ; Tue, 17 Jan 2017 10:14:43 +0100 (CET) Received: (qmail 87858 invoked from network); 17 Jan 2017 10:14:43 +0100 Received: from unknown (HELO ?192.168.3.103?) (rs%bytecamp.net@212.37.174.29) by mail.bytecamp.net with ESMTPS (DHE-RSA-AES128-SHA encrypted); 17 Jan 2017 10:14:43 +0100 Subject: Re: Auto-dropping serial console connection: foo takeover To: freebsd-questions@freebsd.org References: <20170117095243.02c0c03b@thor.intern.walstatt.dynvpn.de> From: Robert Schulze Organization: bytecamp GmbH Message-ID: Date: Tue, 17 Jan 2017 10:14:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170117095243.02c0c03b@thor.intern.walstatt.dynvpn.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 09:23:16 -0000 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