Re: su doesn't work "Authentication failure"



paul <google@xxxxxxxxxx> writes:

It is possible to do 'su someuser' from root but it's not possible to
get back to root then using just 'su' or change from a normal user to
another user account.

[ . . . ]

Jan 31 15:44:18 myserver su[27729]: (pam_unix) authentication failure;
logname= uid=1000 euid=1000 tty=pts/4 ruser=myuser rhost= user=root

The "euid=1000" should read "euid=0": your "su" is running as the
invoking user, so it fails for non-root users. The most likely
explanation is that "/bin/su" doesn't have the setuid flag set, so
that would be the first thing to check. (If the setuid bit *is* set,
the problem may be that your root partition has been mounted with the
"nosuid" mount flag or something.)

If you have a logical explanation for the missing bit, great,
otherwise good security practice would suggest that you give a little
thought before restoring setuid bits on files where it has
mysteriously disappeared. If your version of the "login" package is
the latest official Etch version 1:4.0.18.1-7, then "md5sum /bin/su"
should give:

1381ae1ac77b512258657b096522bb6a /bin/su

If your Etch version matches mine but the md5 doesn't, you might start
to get pretty worried.

--
Kevin Buhr <buhr+debian@xxxxxxxxxxx>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: su doesnt work "Authentication failure"
    ... get back to root then using just 'su' or change from a normal user to ... thought before restoring setuid bits on files where it has ... did a reinstall of the login package just to make sure ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
    ... It'll be executed by the user, not root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (Debian-User)
  • Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
    ... sorry..i lost you on that...you think that someone changed the permissions ... It'll be executed by the user, not root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've ...
    (Debian-User)
  • Re: master.passwd -- securing
    ... use the `passwd` command to set a password for root ... Find a cheaper internet access deal - choose one to suit you. ... To unsubscribe, ...
    (freebsd-questions)
  • Re: why can I write to a file I dont have perms to??
    ... Please respond to General Red Hat Linux discussion list ... # echo "test from root"> test.fil ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)