Skip to content

Instantly share code, notes, and snippets.

tevkar

Block or report user

Report or block tevkar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tevkar
tevkar / copssh-7.0.0-session.patch
Created Aug 27, 2019
Copssh OpenSSH session.c patch to avoid messages 'bad ownership or modes for chroot directory' (non-relevant in a Copssh setup)
View copssh-7.0.0-session.patch
--- session-old.c 2019-04-18 00:52:57.000000000 +0200
+++ session.c 2019-08-26 01:09:26.880631000 +0200
@@ -1333,10 +1333,12 @@
if (stat(component, &st) != 0)
fatal("%s: stat(\"%s\"): %s", __func__,
component, strerror(errno));
+/*
if (st.st_uid != 0 || (st.st_mode & 022) != 0)
fatal("bad ownership or modes for chroot "
"directory %s\"%s\"",
You can’t perform that action at this time.