From owner-freebsd-questions@freebsd.org Mon Oct 24 20:32:12 2016 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 3AF5EC20E13 for ; Mon, 24 Oct 2016 20:32:12 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (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 F3F6F75C for ; Mon, 24 Oct 2016 20:32:11 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) for freebsd-questions@freebsd.org with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1byluj-001hGy-VF>; Mon, 24 Oct 2016 22:32:09 +0200 Received: from x55b232f1.dyn.telefonica.de ([85.178.50.241] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) for freebsd-questions@freebsd.org with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1byluj-003Hav-JS>; Mon, 24 Oct 2016 22:32:09 +0200 Date: Mon, 24 Oct 2016 22:32:04 +0200 From: "O. Hartmann" To: FreeBSD Questions Subject: autologout: from serial console, how? Message-ID: <20161024223204.0cfbc51b.ohartman@zedat.fu-berlin.de> Organization: FU Berlin X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/CVAqPIToeTUk4Wi5Q1kEfZL"; protocol="application/pgp-signature" X-Originating-IP: 85.178.50.241 X-ZEDAT-Hint: A 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: Mon, 24 Oct 2016 20:32:12 -0000 --Sig_/CVAqPIToeTUk4Wi5Q1kEfZL Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I try to auto logout root from a serial console initiated via tip. Therefore, I plaeced the following into /etc/login.conf (followed by cap_mk= db) defaul: \ :idletime=3D600: definig 600 seconds idletime before automatic logout. That doesn't work! I also placed for csh: setenv autologout 5 in /etc/csh.cshrc for a 5 minutes idle time, I also set, just in case for u= sing sh/bash/ksh export TMOUT=3D5 in /etc/profile. Neither of these approaches result in the desired bahviour! By accident, I left a console session open to a serial wired NanoBSD router= project, connecting via tip. After a reboot of the host which opened the session, I = was able to tip-login as root without being prompted for password. So I realised that t= here is no autologout on FreeBSD's default installation for root or other tty/console = connections to a host. Do I miss something here? "Mastering FreeBSD and OpenBSD Security" seems to be outdated hopeless. Please CC me, I do not subscribe the list. Thanks in advance, Oliver --Sig_/CVAqPIToeTUk4Wi5Q1kEfZL Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJYDm/EAAoJEOgBcD7A/5N80doIAMN6uK2GEEuYSK50FWqsr/B3 wMTDDM+tieKLRfUz0oc7yt4ROZzVobTq5wkvA8Glo6mxv4lerUZM8DOIJzF+c/Gd VrGCRiAe7/pTTQj3xB5/oQGCPKfUqleJg63/SewhWspngeByQ25bStkE4zjY8MJA NzAPgsh2mhpyvYecvYuTU0Wm+j5NV7mPmFJ54HBsxoYlRq2//5P0FUYtHQ0+mG8B gRcQmS49wwVa87EgS8MDsUi3aXOQZpK6igOPvePrE3SCx9hxWTFytGz5U8QayCl3 g+0APkcBmqM4ARJTqzmXy0qmHXEhiA1hKvnqzEtM9lUaBRTgCrJkeiYUJ0iuFM4= =JZF7 -----END PGP SIGNATURE----- --Sig_/CVAqPIToeTUk4Wi5Q1kEfZL--