Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] Unable to login

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
krotuss
Apprentice
Apprentice
Posts: 253
Joined: Fri Aug 01, 2008 6:11 pm

[SOLVED] Unable to login

  • Quote

Post by krotuss » Mon Jan 11, 2021 10:28 am

Hi,

after running emerge to update system I am no longer able to login into my raspberry 3. Simptoms are that pubkey ssh closes connection and terminal after short timeout period presents another login prompt. This is my second system that is affected, first was amd64 updated maybe 6 months ago and I still haven't got time to fix it. I suspect that there may be common cause. I am aware about:
2020-06-23-upgrade-to-sys-libs_pam-1_4_0
Title sys-libs/pam-1.4.0 upgrade
Author Mikle Kolyada <zlogene@gentoo.org>
Posted 2020-06-23
Revision 1

Starting with the 1.4.0 release [1], we don't offer these modules anymore:

* pam_tally and pam_tally2 have been deprecated and replaced
by the pam_faillock module
* pam_cracklib has been deprecated and replaced
by the pam_passwdqc module

These changes affected our basic PAM stack configuration.

You only need to take action if:
* you made manual changes to the PAM stack, or
* you use FEATURES="-config-protect-if-modified" option

If this applies to you, please make sure to either run the etc-update or
dispatch-conf command in order to sync your configuration.

Failure to do this may result in your system becoming inaccessible.

[1] - https://github.com/linux-pam/linux-pam/ ... tag/v1.4.0
But I don't think that this applies to me. Any suggestions? Thanks.
Last edited by krotuss on Mon Jan 11, 2021 8:10 pm, edited 1 time in total.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Mon Jan 11, 2021 11:03 am

Hi what happens if you ran

Code: Select all

emerge -1av sys-auth/pambase sys-libs/pam 
dispatch-conf
####replacing the old with the new configs
?
Then maybe re-emerge
openssh
:)
Top
Banana
Moderator
Moderator
User avatar
Posts: 2358
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Mon Jan 11, 2021 12:49 pm

@krotuss did a restart of ssh or even the system solve the issue?
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
krotuss
Apprentice
Apprentice
Posts: 253
Joined: Fri Aug 01, 2008 6:11 pm

  • Quote

Post by krotuss » Mon Jan 11, 2021 4:37 pm

@alamahant: there is lot of blockers, seems that best option is to press on with world update.
@Banana: I have rebooted multiple times and I am still unable to login. In fact its possible that rebooting system before world update finished could have prevented its self recovery.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon Jan 11, 2021 5:14 pm

Are you able to get a root shell on the affected systems, whether through normal login or rescue media? If so, is there anything interesting in the system logs around the time that a failed login happened?
Top
nick_gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 140
Joined: Mon Jan 07, 2019 7:42 pm

  • Quote

Post by nick_gentoo » Mon Jan 11, 2021 5:20 pm

krotuss wrote:@alamahant: there is lot of blockers, seems that best option is to press on with world update.
The PAM update also hit me recently, but it's not yet clear that this is you problem.
In any case, I think it's worth trying first the suggestion of alamahant of running dispatch-conf (or etc-update); it should update the PAM config files, if that's what is blocking you.

By the way, are you using FEATURES="-config-protect-if-modified", mentioned in the news item?
Top
krotuss
Apprentice
Apprentice
Posts: 253
Joined: Fri Aug 01, 2008 6:11 pm

  • Quote

Post by krotuss » Mon Jan 11, 2021 8:08 pm

I was able to enable system logging and discovered that problem was caused by missing tally2 and cracklib so files. Although I don't have "-config-protect-if-modified" in my FEATURES. My hypothesis is that plugins and config files are owned by separate packages and plugins part got updated but config did not.

I have commented out lines that referenced missing plugins in /etc/pam.d and now I am able to login. I don't mean to assign blame, but maybe similar advice could have been part of news message. Or at least warning that if you lose access to your system (screenlocker!) you may not be able to re-login until update finishes and you will be left with no reliable way to tell if emerge is still running or not. Because of dependencies there is practically no way to update just specific packages so there is relatively high risk that some package may cause emerge to fail leaving user with bricked system.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy