[PATCH] don't always emit '.ssh' create error

Reuben Hawkins reubenhwk at gmail.com
Thu Dec 8 12:53:02 AEDT 2016

Hopefully gmail won't mangle the attachment (gmail seems to hate

SSH is used to automate tasks on remote hosts.  There are often special
user account created for these tasks.  Many of those user accounts are
locked down for security.  Some of those users' home path is '/dev/null'.
When this is the case, ssh automated tasks clutter up the logfiles with...

Could not create directory '/dev/null/.ssh'.

...this change checks that the user's home directory is actually a directory
and that it is writable by that user before attempting to create the '.ssh'
directory.  This prevents the error.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-don-t-always-emit-.ssh-create-error.patch
Type: text/x-patch
Size: 2495 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20161207/1ed5f24d/attachment.bin>

More information about the openssh-unix-dev mailing list