[Bug 2060] sshd tries to use chdir to users home directory as root

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Jan 11 11:31:13 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=2060

--- Comment #1 from Peter Gray <metadalek at gmail.com> ---
More info:

This seems to occur only if use_login is set. If not, the uid has
already been set to the target user and all works as expected.

One fix is if running as root, set the effective uid of the process to
the target user before the call to chdir and reset euid to root after
the rc files have been read. A better fix is to avoid the while chdir
and rc file stuff if use_login is set.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list