[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: passwd: Permission denied ?



On 2009-09-18 11:26 +0200, Frank Bonnet wrote:

> Sven Joachim wrote:
>> On 2009-09-18 09:34 +0200, Frank Bonnet wrote:
>>
>>> I'm trying to change a local user passwd as root and I get this error
>>> message ... which seems a bit unreal to me ...
>>>
>>>
>>> passwd: Permission denied
>>> passwd: password unchanged
>>
>> What does "lsattr /etc/passwd /etc/shadow" print?
>
> this ... how it has been changed ? this is a fresh install
> does this mean another admin has changed the default attr ?

This may happen because of an intruder or because of file system
corruption.  I've seen the latter a few times on this list.  But...

> lsattr /etc/passwd /etc/shadow
> ------------------- /etc/passwd
> ------------------- /etc/shadow

...this is how it's supposed to be, i.e. no special attributes.  Can
you run the process under strace?

Sven


Reply to: