Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937941 - sys-auth/pambase[homed]: pam_shells blocks login for homed managed users as of sys-apps/systemd-256
Summary: sys-auth/pambase[homed]: pam_shells blocks login for homed managed users as o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-14 23:51 UTC by Mark Wood
Modified: 2024-11-04 19:52 UTC (History)
4 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 Mark Wood 2024-08-14 23:51:51 UTC
systemd-256 has switched to /usr/lib/systemd-home-fallback-shell for logging in homed users. As this is not within the /etc/shells file, login will fail.

Reporting this against pambase as systemd response to a bug report by an arch user was that pam_shells should not be in the pam stack if homed is in use. I think there will probably need to be a discussion about how best to deal with this.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-14 23:57:40 UTC
See also bug 910758 where we had similar but different issues caused by systemd + pam_shells.
Comment 2 Mike Gilbert gentoo-dev 2024-08-15 02:30:29 UTC
I would be in favor of dropping pam_shells from our default PAM config.

I think we just need to ensure this wont open up some unforeseen security hole.
Comment 3 Mark Wood 2024-08-15 12:48:56 UTC
The alternative would be adding /usr/bin/systemd-home-fallback-shelL to /etc/shells via a baselayout update but this seems like a fairly fragile fix. 

I’m not sure what security the pam_shells and /etc/shells file provide to the system so I can’t say with certainty that removal is safe.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-16 00:32:54 UTC
I think we should investigate dropping pam_shells but add the path in the meantime to baselayout.
Comment 5 Björn Ferson 2024-11-03 21:46:29 UTC
any update on this bug. systemd-256 is stable now
but i need to add /usr/lib/systemd-home-fallback-shell to /etc/shell
to make systemd-homed login function again.
Comment 6 Larry the Git Cow gentoo-dev 2024-11-03 23:31:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=cb363321eff954180887609bac5f90463214f043

commit cb363321eff954180887609bac5f90463214f043
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-11-03 23:30:21 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-11-03 23:30:57 +0000

    shells: add /usr/lib/systemd-home-fallback-shell
    
    Bug: https://bugs.gentoo.org/937941
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 etc/shells | 1 +
 1 file changed, 1 insertion(+)
Comment 7 Larry the Git Cow gentoo-dev 2024-11-03 23:37:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9ce71da010638a2ca33c895674b95b3f231f029

commit c9ce71da010638a2ca33c895674b95b3f231f029
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-11-03 23:36:59 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-11-03 23:36:59 +0000

    sys-apps/baselayout: add 2.16
    
    Closes: https://bugs.gentoo.org/910758
    Closes: https://bugs.gentoo.org/937941
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/baselayout/Manifest               |   1 +
 sys-apps/baselayout/baselayout-2.16.ebuild | 364 +++++++++++++++++++++++++++++
 2 files changed, 365 insertions(+)
Comment 8 Björn Ferson 2024-11-04 16:43:41 UTC
systemd-home-fallback-shell location is in /usr/bin not /usr/lib on my system
Comment 9 Mike Gilbert gentoo-dev 2024-11-04 19:52:16 UTC
(In reply to Björn Ferson from comment #8)
> systemd-home-fallback-shell location is in /usr/bin not /usr/lib on my system

Oops, fixed in 2.17.