Menu

#16 restrictive .ssh access rights (700) lead to error

2.2
open
nobody
None
5
2015-05-06
2014-09-08
No

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

Discussion

  • Wolfgang Rosenauer

    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?

     
  • Wolfgang Rosenauer

    • Group: 2.1 --> 2.2
     

Log in to post a comment.