Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585232 - install-minimal-*.iso: Update MOTD - Cannot login with root password to new system, since update to OpenSSH7 sets PermitRootLogin=prohibit-password.
Summary: install-minimal-*.iso: Update MOTD - Cannot login with root password to new s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 575330 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-06 22:59 UTC by Eric Johnson
Modified: 2016-11-26 00:57 UTC (History)
3 users (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 Eric Johnson 2016-06-06 22:59:44 UTC
On booting from the minimal install disk I just fetched (install-amd64-minimal-20160602.iso), the instructions say that I can change the root password, then start sshd.

However, unless I *also* edit /etc/ssh/sshd_config, and set

PermitRootLogin yes

then I cannot ssh into the machine to complete the install.

I suspect that either the documentation should be updated to note this detail for sshd users, or the minimal ISO should be changed to allow root login.
Comment 1 Michael 'veremitz' Everitt 2016-06-07 19:45:47 UTC
See http://www.openssh.com/txt/release-7.0 .

OpenSSH 7 sshd_config defaults to PermitRootLogin=prohibit-password .
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2016-06-19 15:46:46 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f80a533616f8e591963a5f2ae7d7e9a694e0079

This "fix" to openssh was pushed to the tree. This should allow root password logins in the live-cd again.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2016-06-19 15:53:03 UTC
15:51 < gentoovcs> jmbsvicetto → proj/releng (releases/weekly/portage/stages/package.keywords/) Keyword latest openssh version to allow root password logins in the live-cds - fixes bug 585232.
15:51 < willikins> gentoovcs: https://bugs.gentoo.org/585232 "install-minimal-*.iso: Update MOTD - Cannot login with root password to new system, since update to OpenSSH7 sets PermitRootLogin=prohibit-password."; Gentoo Release Media, InstallCD; CONF; eric:release
Comment 4 Michael 'veremitz' Everitt 2016-06-20 00:57:07 UTC
Thanks Jorge - fallen foul of this a few times!
Comment 5 SpanKY gentoo-dev 2016-07-10 11:37:43 UTC
this breaks with catalyst:

Configuring /etc/portage...
cannot delete non-empty directory: package.keywords
could not make way for new regular file: package.keywords
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
!!! catalyst: Error copying /etc/portage

this also really did not need a revbump.  please pass changes like this by the base-system@ alias first in the future.
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2016-07-10 12:27:20 UTC
(In reply to SpanKY from comment #5)
> this breaks with catalyst:
> 
> Configuring /etc/portage...
> cannot delete non-empty directory: package.keywords
> could not make way for new regular file: package.keywords
> rsync error: some files/attrs were not transferred (see previous errors)
> (code 23) at main.c(1178) [sender=3.1.2]
> !!! catalyst: Error copying /etc/portage
> 
> this also really did not need a revbump.  please pass changes like this by
> the base-system@ alias first in the future.

Mike,

we got a new installcd 2 days ago, and we've been using portdir for a long time, so the change didn't break the building of releases.
About the change to openssh, I did talk to robbat2 about it.

 [1] - http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2016-11-14 02:48:52 UTC
*** Bug 575330 has been marked as a duplicate of this bug. ***
Comment 8 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2016-11-14 03:20:41 UTC
I'm closing this one as it should be fixed now.
Comment 9 SpanKY gentoo-dev 2016-11-26 00:57:59 UTC
no, it's still broken with the same error message i posted earlier.  it might be working for iso builds, but it's breaking netboot images.

i've reverted your keyword change now though since it's unnecessary:
https://gitweb.gentoo.org/proj/releng.git/commit/?id=cb672f4003f1ffdadf766c5b395296f880d28a4d

hopefully that'll fix the netboot builds.