restrictive .ssh access rights (700) lead to error
Brought to you by:
rosenauer
Version 2.01 seems to have a problem when accessing an .ssh directory with restrictive access rights (700) resulting in the following error message:
pam_ssh[8937]: inexistent configuration directory
I've replaced the access() function with a stat() call which should be sufficient to determine if a user has an existing .ssh directory.
The corresponding patch can be found here:
https://503424.bugs.gentoo.org/attachment.cgi?id=384368
Any idea why 0700 would be a problem for access()?
I don't really care much about replacing access() with stat() but the code tries to write into that directory afterwards. If access() fails why would writing into the directory work afterwards?