From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1IXKtB-0003R3-GH for garchives@archives.gentoo.org; Mon, 17 Sep 2007 18:00:05 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8HHpB9p015830; Mon, 17 Sep 2007 17:51:11 GMT Received: from dcnode-02.unlimitedmail.net (139.Red-80-26-111.staticIP.rima-tde.net [80.26.111.139]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8HHkdBg010629 for ; Mon, 17 Sep 2007 17:46:40 GMT Received: from ppp.zz ([137.204.208.98]) (authenticated bits=0) by dcnode-02.unlimitedmail.net (8.14.0/8.14.0) with ESMTP id l8HHkUdf028595 for ; Mon, 17 Sep 2007 19:46:31 +0200 From: Etaoin Shrdlu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] chage can't open /etc/passwd Date: Mon, 17 Sep 2007 19:57:27 +0200 User-Agent: KMail/1.9.7 References: <1190041963.18545.13.camel@localhost> In-Reply-To: <1190041963.18545.13.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709171957.27858.shrdlu@unlimitedmail.org> X-UnlimitedMail-MailScanner: Found to be clean X-UnlimitedMail-MailScanner-From: shrdlu@unlimitedmail.org X-Spam-Status: No X-Archives-Salt: 0132be68-0601-4b7c-b679-ea789fa9c7c7 X-Archives-Hash: 80ab4c4e7094c26bb0b65daef8775e25 On Monday 17 September 2007, Albert Hopkins wrote: > I've been having this problem on one of my machines for a while. As a > user or as root I cannot run chage: > > $ chage -l marduk > chage: can't open password file > > I've looked at /etc/passwd*, /etc/shadow* /etc/group* and > /etc/gshadow* and all the permissions look fine. It works on other > machines. I even tried re-emerging the shadow package, but still get > the same error. > > I tried running pwck thinking the password file was somehow currupt. > pwck only complains about users with invalid home directories/shells. > Oddly enough, 'pwck' runs w/o errors, but 'pwck -r' (read-only) gives. > > pwck: cannot open file /etc/passwd > > > syslog shows: > Sep 17 10:07:49 [chage] failed opening /etc/passwd > > I'm at a loss. Rebooting makes no difference. passwd seems to work > fine. I can open /etc/passwd myself (as root and user) just fine. > Anyone got any clues? Is /usr/bin/chage suid root? -- gentoo-user@gentoo.org mailing list