[Bug 2813] sshd fails to start in user namespaces when the gid for tty is not mapped
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Sat Dec 1 12:22:45 AEDT 2018
https://bugzilla.mindrot.org/show_bug.cgi?id=2813
Darren Tucker <dtucker at dtucker.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at dtucker.net
--- Comment #4 from Darren Tucker <dtucker at dtucker.net> ---
Do these containers use a chroot or equivalent? If so, removing "tty"
from the groups file inside the chroot will cause sshd to use the
user's gid which sounds like what you want:
/* Determine the group to make the owner of the tty. */
grp = getgrnam("tty");
gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list