From owner-freebsd-questions@FreeBSD.ORG Tue Jul 17 16:32:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBACF106566C for ; Tue, 17 Jul 2012 16:32:44 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id B5B7E8FC24 for ; Tue, 17 Jul 2012 16:32:44 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SrAhR-0003XT-Oo for freebsd-questions@freebsd.org; Tue, 17 Jul 2012 09:32:37 -0700 Date: Tue, 17 Jul 2012 09:32:37 -0700 (PDT) From: Jakub Lach To: freebsd-questions@freebsd.org Message-ID: <1342542757760-5727668.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Nasty reference loop in login.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2012 16:32:44 -0000 It's my fault. I'm running 9-STABLE. During mergemaster run, I forgot to add localised settings to login.conf. No problem I thought, then I edited login.conf by hand before running /usr/bin/cap_mkdb /etc/login.conf. By sloppy paste, I accidentally created :tc=default: loop in default:\. Now, of course I cannot login as anybody nor use sudo. e.g. login_getclass: 'tc=' reference loop 'root' su: pam_acct_mgmt: error in service module sudo: login_getclass: 'tc=' reference loop 'default' Moreover I'm afraid to power down machine, as currently I'm logged as wheel group user, and I'm not sure if change from :passwd_format=md5:\ to :passwd_format=sha512:\ didn't complicate it further... Currently all my solutions would require to power down machine, which I'm afraid to do frankly. 1. Hope I can still log in single user mode and correct /etc/login.conf? I'm afraid of md5 -> sha512 change. 2. Use some LiveCD and correct login.conf, then run /usr/bin/cap_mkdb . Has anybody have other ideas? -- View this message in context: http://freebsd.1045724.n5.nabble.com/Nasty-reference-loop-in-login-conf-tp5727668.html Sent from the freebsd-questions mailing list archive at Nabble.com.