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 1IXNUI-0000oH-Uz for garchives@archives.gentoo.org; Mon, 17 Sep 2007 20:46:36 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l8HKasXZ001940; Mon, 17 Sep 2007 20:36:54 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 l8HKVL8e027256 for ; Mon, 17 Sep 2007 20:31:21 GMT Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 037112F34A for ; Mon, 17 Sep 2007 16:31:21 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 17 Sep 2007 16:31:21 -0400 X-Sasl-enc: HUzALHUkSmaUrS0derP6cPZgZks1wmQao/id2xJLGvP/ 1190061071 Received: from [10.6.104.131] (nat-vlan0201.sat4.rackspace.com [64.39.0.39]) by www.fastmail.fm (Postfix) with ESMTP id 2AAC84C10 for ; Mon, 17 Sep 2007 16:31:11 -0400 (EDT) Subject: Re: [gentoo-user] chage can't open /etc/passwd From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: <200709172148.48037.shrdlu@unlimitedmail.org> References: <1190041963.18545.13.camel@localhost> <64e8d2f20709171030o64c252bcx2810087e88d35775@mail.gmail.com> <1190056513.15444.2.camel@localhost> <200709172148.48037.shrdlu@unlimitedmail.org> Content-Type: text/plain Date: Mon, 17 Sep 2007 15:30:19 -0500 Message-Id: <1190061019.15444.44.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: 4212c9db-e4c0-400a-8da3-be7632f7fcad X-Archives-Hash: 382136dac812391fb438f318a4baff58 On Mon, 2007-09-17 at 21:48 +0200, Etaoin Shrdlu wrote: > What does stracing the program show? As root it does an open("/etc/passwd", O_RDONLY) twice. Both times it gets a file handle. As user, same thing, but it also tries to open /etc/shadow RDONLY and, of course, gets a "Permission denied". There is also a write(2, "chage: PAM authentication failed"..., 33chage: PAM authentication failed) = 33 But I've never seen this on my terminal when running w/o strace. In addition, in both cases it attempts to open a bunch of /usr/lib/locale/ files but most of them are "No such file or directory" I'm thinking this is normal though. It also tries to connect to /var/run/nscd/socket but fails but as I do not use nscd I assume that's normal as well. -- gentoo-user@gentoo.org mailing list