[follow-up/fix] openssh 2.5.2p2 not allowing RSA authentication

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Wed Apr 4 22:58:53 EST 2001


the stat() on which file?

On Wed, Apr 04, 2001 at 02:06:56PM +0200, Jan Just Keijser wrote:
> hmmm, I found the problem and managed to fix it, but I am not sure if this
> isn't broken:
> 
> using gdb, I found that sshd fails to stat the 'authorized_keys' files,
> which was in /local/home/janjust/.ssh/authorized_keys. Here were the
> permissions for the directories and files leading to that file:
> 
> drwxr-sr-x  11 root     root         4096 Mar 20 15:57 /local
> drwxr-s---   3 root     users        4096 Jan 18 11:24 /local/home
> drwxr-sr-x  27 janjust  users        4096 Apr  4 13:34 /local/home/janjust
> drwx------   2 janjust  users        4096 Apr  4 13:12
> /local/home/janjust/.ssh
> -rw-------   1 janjust  users        1357 Jan 16 10:39
> /local/home/janjust/.ssh/authorized_keys
> 
> the error that stat() returned is 'Permission denied'. After changing the
> permissions to
> 
> drwxr-sr-x  11 root     root         4096 Mar 20 15:57 /local
> drwxr-sr-x   3 root     users        4096 Jan 18 11:24 /local/home
> drwxr-sr-x  27 janjust  users        4096 Apr  4 13:59 /local/home/janjust
> drwx------   2 janjust  users        4096 Apr  4 13:12
> /local/home/janjust/.ssh
> -rw-------   1 janjust  users        1357 Jan 16 10:39
> /local/home/janjust/.ssh/authorized_keys
> 
> (i.e. I changed the permissions on /local/home !) everything is working
> fine. That's bizar, and I wonder where this is broken - not in OpenSSH
> probably, more likely somewhere in glibc...
> 
> comments, any one?
> 
> TIA,
> 
> JJK / Jan Just Keijser
> Cisco Systems International BV



More information about the openssh-unix-dev mailing list