Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] chage can't open /etc/passwd
Date: Mon, 17 Sep 2007 19:51:55
Message-Id: 200709172148.48037.shrdlu@unlimitedmail.org
In Reply to: Re: [gentoo-user] chage can't open /etc/passwd by Albert Hopkins
1 On Monday 17 September 2007, Albert Hopkins wrote:
2 > On Mon, 2007-09-17 at 13:30 -0400, Ryan Sims wrote:
3 > > This is just triage, but what are the permissions on /etc/passwd?
4 >
5 > $ /bin/ls
6 > -l /etc/passwd* /etc/shadow* /etc/group* /etc/gshadow* /usr/bin/chage
7 > -rw-r--r-- 1 root root 1404 2007-09-08 17:39 /etc/group
8 > -rw------- 1 root root 1389 2007-06-30 23:15 /etc/group-
9 > -rw------- 1 root root 1203 2007-07-19 18:37 /etc/gshadow
10 > -rw------- 1 root root 1190 2007-06-23 09:12 /etc/gshadow-
11 > -rw-r--r-- 1 root root 3161 2007-09-12 11:51 /etc/passwd
12 > -rw------- 1 root root 3209 2007-09-08 17:39 /etc/passwd-
13 > -rw------- 1 root root 1233 2007-09-12 20:10 /etc/shadow
14 > -rw------- 1 root root 1290 2007-09-08 17:39 /etc/shadow-
15 > -rws--x--x 1 root root 36944 2007-09-12 10:56 /usr/bin/chage
16 >
17 >
18 > Actually, /etc/gshadow wasn't root-writable for some reason. I did a
19 > 'chmod u+w' but still get "chage: can't open password file".
20 >
21 > BTW, this happens whether I'm running as user or root.
22
23 What does stracing the program show?
24 --
25 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] chage can't open /etc/passwd Albert Hopkins <marduk@×××××××××××.org>