I have some users which have different $HOME directories than /home/
.
The user homes are under /pkg/home
and /pkg
owner is a different user, but all users have group access to /pkg
. It seems that SSHD will restrict access to authorized_keys
(e.g. /pkg/home/usera/.sshd/authorized_keys
) because the user is not owner of the full path.
Is there any option for sshd_config
to change this restriction?
Best Answer
It doesn't matter who owns /pkg/. If it would be owned by
usera
then you would have problems withuserb
etc. So it must be something else that prevents SSHD from usingauthorized_keys
file. You have to check if this file is writable only by the owner and if it is owned by proper user. The same applies all parent directories.