News for hackers. Stuff that matters.
Re:Abusing Ubuntu 24.04 features for root privilege escalation by Brian_K_White on Friday November 15, 2024 @11:25AM (#42148358)
Well, I don't know anyone else who scoffs at that.

I also don't know anyone else who would assume that others don't know "how this has always worked" except someone who only learned themselves last week and think they know a lot now.

I didn't say anything about adding comments as an end user. My point about comments was that least suprise could be resolved trivially without even changing the existing desired behavior, by nothing more than the OS shipping a default sshd_config that was structured so that it clearly had a section that will be overridden, and a section that will override, which requires nothing more than a few comments.

Re:Abusing Ubuntu 24.04 features for root privilege escalation by HumanOstrich on Friday November 15, 2024 @02:54PM (#42150264)
There isn't a comment specifically saying that including more config files can override values, so I'll give you that. However, it does have comments explaining exactly how to override default values. It looks like what the OP of this thread is attempting should work unless they messed up something else.

I'm looking at a couple sshd_config files on my servers, and the Include directive for the overrides is the first non-comment line in the file.

Having that Include be first means that changing any settings in the sshd_config file will override anything set by sshd_config.d/* files.

What in the heck are these people doing to break their config? There really is no legitimate issue here.