On 9/17/07, Albert Hopkins <[EMAIL PROTECTED]> 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
-- 
[EMAIL PROTECTED] mailing list

Reply via email to