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.

-- 
[EMAIL PROTECTED] mailing list

Reply via email to