Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170586 - net-misc/openssh-4.6_p1 etc-update issue
Summary: net-misc/openssh-4.6_p1 etc-update issue
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 15:48 UTC by Timo Gurr (RETIRED)
Modified: 2007-03-12 19:56 UTC (History)
1 user (show)

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 Timo Gurr (RETIRED) gentoo-dev 2007-03-12 15:48:54 UTC
I'm running several machines with the standard sshd config file and never touched it manually since they're in a trusted internal LAN so root login was always possible. Now after updating to openssh-4.6_p1 and running etc-update afterwards it automerged the config files:

Scanning Configuration files...
Automerging trivial changes in: /etc/ssh/sshd_config

And commented out
#PermitRootLogin yes
and set
PasswordAuthentication no

so after restarting sshd I was not able to login anymore.

On another machine with a heavily edited sshd_config the problem didn't occur since etc-update asked to manually review the config file(s).

Reproducible: Sometimes

Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-12 16:00:07 UTC
/etc/etc-update.conf

<snip>
# Whether trivial/comment changes should be automerged
eu_automerge="yes"
</snip>

^^^ Hint: change to "no"
Comment 2 Timo Gurr (RETIRED) gentoo-dev 2007-03-12 16:04:38 UTC
Hm well shouldn't this be the default then? I mean I've never had any problem with it before but this is a really bad behaviour which can cause a lot of trouble (like in my case here).
Comment 3 Wulf Krueger (RETIRED) gentoo-dev 2007-03-12 18:27:22 UTC
(In reply to comment #1)
> # Whether trivial/comment changes should be automerged

While this might be a "comment change" if you take the words literally, it hardly  is a trivial change. At the very least, this behaviour leaves much to be desired.
Comment 4 SpanKY gentoo-dev 2007-03-12 18:44:35 UTC
PermitRootLogin is always enabled by default so i dont see how commenting out it set to "yes" breaks anything

as for PasswordAuthentication, that is dependent upon USE=pam, so if you have that enabled, that implies you want:
UsePAM yes
PasswordAuthentication no
Comment 5 Timo Gurr (RETIRED) gentoo-dev 2007-03-12 18:56:04 UTC
Thanks for the clarification. I do have one remaining question, since when is this the default behaviour in gentoo?
Comment 6 SpanKY gentoo-dev 2007-03-12 19:56:49 UTC
which default behavior ?  the sshd_config defaults have been this way forever (seriously, a quick check shows it hasnt changed in over two years)