1 |
On Monday 17 September 2007, Albert Hopkins wrote: |
2 |
> I've been having this problem on one of my machines for a while. As a |
3 |
> user or as root I cannot run chage: |
4 |
> |
5 |
> $ chage -l marduk |
6 |
> chage: can't open password file |
7 |
> |
8 |
> I've looked at /etc/passwd*, /etc/shadow* /etc/group* and |
9 |
> /etc/gshadow* and all the permissions look fine. It works on other |
10 |
> machines. I even tried re-emerging the shadow package, but still get |
11 |
> the same error. |
12 |
> |
13 |
> I tried running pwck thinking the password file was somehow currupt. |
14 |
> pwck only complains about users with invalid home directories/shells. |
15 |
> Oddly enough, 'pwck' runs w/o errors, but 'pwck -r' (read-only) gives. |
16 |
> |
17 |
> pwck: cannot open file /etc/passwd |
18 |
> |
19 |
> |
20 |
> syslog shows: |
21 |
> Sep 17 10:07:49 [chage] failed opening /etc/passwd |
22 |
> |
23 |
> I'm at a loss. Rebooting makes no difference. passwd seems to work |
24 |
> fine. I can open /etc/passwd myself (as root and user) just fine. |
25 |
> Anyone got any clues? |
26 |
|
27 |
Is /usr/bin/chage suid root? |
28 |
|
29 |
-- |
30 |
gentoo-user@g.o mailing list |