Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906186 - net-misc/openssh-9.3_p1-r1 makes it too hard to override UsePAM or PasswordAuthentication
Summary: net-misc/openssh-9.3_p1-r1 makes it too hard to override UsePAM or PasswordAu...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 06:32 UTC by Alex Efros
Modified: 2023-05-12 13:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2023-05-12 06:32:15 UTC
This package adds /etc/ssh/sshd_config.d/9999999gentoo-pam.conf plus appends
  Include "/etc/ssh/sshd_config.d/*.conf"
at the end of /etc/ssh/sshd_config. All of this makes it really inconvenient and unclear how to override settings in these files.

Moreover, conf filename starting with 7 (!) nines looks like this is a musthave/required/critical setup absolutely not recommended to override - which isn't the case.

Can you please change this to make it more optionated and easier to override?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-12 10:56:20 UTC
Have you read your news items?
Comment 2 Alex Efros 2023-05-12 11:17:41 UTC
(In reply to Sam James from comment #1)
> Have you read your news items?

Yep.

Do you want to say recommended way is to edit 9999999gentoo-pam.conf instead of overriding it using 9999999999local.conf (as it usually done in *.d/ configuration style)?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-12 11:19:52 UTC
(In reply to Alex Efros from comment #2)
> (In reply to Sam James from comment #1)
> > Have you read your news items?
> 
> Yep.
> 
> Do you want to say recommended way is to edit 9999999gentoo-pam.conf instead
> of overriding it using 9999999999local.conf (as it usually done in *.d/
> configuration style)?

The news item says you override it in a *lower* numbered file.
Comment 4 Alex Efros 2023-05-12 13:49:34 UTC
(In reply to Sam James from comment #3)
> The news item says you override it in a *lower* numbered file.

Yeah, I saw this. I just don't actually believe it works this way - it's counter intuitive and everything else works in other way. :(
Comment 5 Alex Efros 2023-05-12 13:54:00 UTC
Okay, I see. sshd_config(5) says "… processed in lexical order.", but it also says "… for each keyword, the first obtained value will be used.".