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 <gentoo-user+bounces-69621-garchives=archives.gentoo.org@gentoo.org>) id 1IXKe2-0001R5-8e for garchives@archives.gentoo.org; Mon, 17 Sep 2007 17:44:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8HHZMoo008016; Mon, 17 Sep 2007 17:35:23 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8HHUor6003014 for <gentoo-user@lists.gentoo.org>; Mon, 17 Sep 2007 17:30:51 GMT Received: by py-out-1112.google.com with SMTP id u77so3581837pyb for <gentoo-user@lists.gentoo.org>; Mon, 17 Sep 2007 10:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JKE1UFxQ8SlC7a5+vlO/hSons4zPNd38FAzic7hXYLM=; b=oJbctZ7RG+KnPb6XlAUab/qN3qIc8bavMe4ZKam1XlosBmebMsMOot8HTN2ODsrrN7sBQ/QViVdhJ1AQysXu1zBEcj73jWHVaJWzFpi8GblxFwYTGtnwZ8MIk8gRVmX71rQ2XcF/a2f/qG1VvSXVclgxEZzh4IrqehTQbVv+zuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dabSc8fPgRIHRNIy7y2nqSmdFqZ/EgPotT6wr+EoEKSCpZc09AI4FF/D8Gz69V4yVhblPFFhRSPyCQnOYK6Bee6l+gmy7151l4TaWTd/LKoT/8Av4YP+LZ9+KHOJJhoJyEOiVMk+5Im7A3QDVB/15klZJtLLe0aqTXzdhXN58uc= Received: by 10.35.86.12 with SMTP id o12mr6590476pyl.1190050245330; Mon, 17 Sep 2007 10:30:45 -0700 (PDT) Received: by 10.35.122.12 with HTTP; Mon, 17 Sep 2007 10:30:45 -0700 (PDT) Message-ID: <64e8d2f20709171030o64c252bcx2810087e88d35775@mail.gmail.com> Date: Mon, 17 Sep 2007 13:30:45 -0400 From: "Ryan Sims" <rwsims@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] chage can't open /etc/passwd In-Reply-To: <1190041963.18545.13.camel@localhost> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1190041963.18545.13.camel@localhost> X-Archives-Salt: 5a1e4c19-6648-42ae-a18d-e35a74f9465e X-Archives-Hash: 63e9116963f9f02f41777efabaa2c964 On 9/17/07, Albert Hopkins <marduk@letterboxes.org> 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? This is just triage, but what are the permissions on /etc/passwd? -- Ryan W Sims -- gentoo-user@gentoo.org mailing list