From: Frank Bonnet on 18 Sep 2009 08:50 Well after rebooting the machine it seems the / partition has a problem fsck cannot correct the problem too It might be a hardware problem ... (sigh !) Jerome BENOIT wrote: > > > Frank Bonnet wrote: >> Jerome BENOIT wrote: >>> Hello Frank, >>> >>> what gives >>> ls -l /etc/passwd >>> lsattr /etc/passwd >> >> well I am logged as root which is supposed in a UNIX world >> to have access to all files of the local filesystem without >> access right checking huh ? > > may be, but you issue is, as you said, unreal. > > have you strace passwd to have a better idea of what is going on ? > > Jerome >> >> >> ls -l /etc/passwd >> -rw-r--r-- 1 root root 1358 2009-09-18 09:21 /etc/passwd >> >> >> lsattr /etc/passwd >> ------------------- /etc/passwd >> >>> >>> ? >>> >>> Jerome >>> >>> Frank Bonnet wrote: >>>> Hello >>>> >>>> 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 >>>> >>>> >>>> The machine is running Lenny 64 bits >>>> >>>> Thank you >>>> >>>> >>> >> >> > -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Chris Davies on 18 Sep 2009 09:20 Frank Bonnet <f.bonnet(a)esiee.fr> 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 Suspect you've lost the setuid permission bit on /usr/bin/passwd: ls -l /usr/bin/passwd -rwsr-xr-x 1 root root 34392 2009-05-22 16:03 /usr/bin/passwd If you don't see an 's' in the fourth character position then that's the problem, and you can fix it with these commands run as root: chown root:root /usr/bin/passwd chmod u=rwx,go=rx,u+s /usr/bin/passwd # 4755 if you insist Chris -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Ron Johnson on 18 Sep 2009 10:00 On 2009-09-18 02:34, Frank Bonnet wrote: > Hello > > 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 > > > The machine is running Lenny 64 bits Dumb question: how are you trying to change the password? -- Ron Johnson, Jr. Jefferson LA USA "If God had wanted man to play soccer, he wouldn't have given us arms." Mike Ditka -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Tzafrir Cohen on 20 Sep 2009 23:00 On Fri, Sep 18, 2009 at 09:34:12AM +0200, Frank Bonnet wrote: > Hello > > 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 > > > The machine is running Lenny 64 bits Two places to look into: 1. /var/log/auth.log 2. /etc/pam.d/passwd -- Tzafrir Cohen | tzafrir(a)jabber.org | VIM is http://tzafrir.org.il | | a Mutt's tzafrir(a)cohens.org.il | | best ICQ# 16849754 | | friend -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Jon Dowland on 21 Sep 2009 09:30 On Fri, Sep 18, 2009 at 11:39:28AM +0200, Frank Bonnet wrote: > -rw-r--r-- 1 root root 1358 2009-09-18 09:21 /etc/passwd These permissions are wrong. The missing suid bit (as someone else pointed out) will prevent anyone but root using it. The missing e(x)ecute bit will prevent even root. Either restore +x (and +s), or something like # /lib/ld-2.9.so /usr/bin/passwd I would also worry about *precicely how* the permissions were changed. -- Jon Dowland
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: News: l'immigration au Canada Next: Starting MTA: nodaemon and queueonly |