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 1IXOVz-0005Id-QT for garchives@archives.gentoo.org; Mon, 17 Sep 2007 21:52:24 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8HLhBYV022621; Mon, 17 Sep 2007 21:43:11 GMT Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l8HLcdim017636 for ; Mon, 17 Sep 2007 21:38:41 GMT Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id EC1382E474 for ; Mon, 17 Sep 2007 17:38:38 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 17 Sep 2007 17:38:39 -0400 X-Sasl-enc: 78NVa7gfrH4YPt/awkOUXyQLIa+syWoA0XrCygegcCJc 1190065109 Received: from [10.6.104.131] (nat-vlan0201.sat4.rackspace.com [64.39.0.39]) by www.fastmail.fm (Postfix) with ESMTP id 271404C33 for ; Mon, 17 Sep 2007 17:38:29 -0400 (EDT) Subject: Re: [gentoo-user] chage can't open /etc/passwd From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: <200709172309.11576.shrdlu@unlimitedmail.org> References: <1190041963.18545.13.camel@localhost> <200709172148.48037.shrdlu@unlimitedmail.org> <1190061019.15444.44.camel@localhost> <200709172309.11576.shrdlu@unlimitedmail.org> Content-Type: text/plain Date: Mon, 17 Sep 2007 16:37:37 -0500 Message-Id: <1190065057.15444.55.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 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 3677cfa0-1d44-4f1b-b5db-6aeea36723e4 X-Archives-Hash: 8c160c623ee61513e8f08c07fd4f03fe On Mon, 2007-09-17 at 23:09 +0200, Etaoin Shrdlu wrote: > This is different from what you said before. You said that running as > root or as an user made no difference, and in both cases you were > getting "can't open password file". > You never mentioned a "permission > denied" Permission denied is from the strace (the result of the open()). I didn't mention it before because before I didn't run strace before. Regardless of root/non-root I get "chage: can't open password file" > error, which seems correct when running as a regular user. > On my box, running chage as a regular user fails with "permission > denied", but it's not related to /etc/shadow permissions. Instead > (looking at the strace and at the sources), chage checks the real UID > of > the user and terminates if it's not 0 and the user requests to change > the info (instead of just listing it with -l). It does not even touch > any file. > So, if you see chage trying to open /etc/shadow when running as a > regular > user, something must be broken or wrong. What version of shadow are > you > using? Mine is shadow-4.0.18.1-r1. I'm running shadow-4.0.18.1-r1 with "pam" in set as a USE flag. -- gentoo-user@gentoo.org mailing list