Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832167 - sys-apps/systemd[homed] should depend on sys-auth/pambase[homed]
Summary: sys-apps/systemd[homed] should depend on sys-auth/pambase[homed]
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-27 17:30 UTC by Matthew Marchese
Modified: 2022-03-08 18:14 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 Matthew Marchese Gentoo Infrastructure gentoo-dev 2022-01-27 17:30:29 UTC
When I attempted to setup systemd homed support for my system, I only added homed support to sys-apps/systemd (via a /etc/portage/package.use/ entry), not realizing  homed support needed to be applied to the pambase package.

Taking my approach will likely cause confusion since users will not be able to authenticate their home directories properly due to pambase files in /etc/pam.d/ not being configured properly. The ideal solution is to have systemd +homed depend on pambase +homed.

This would not have occurred if homed was enabled via USE in /etc/portage/make.conf, however all users may not take this approach...



Reproducible: Always

Steps to Reproduce:
1. Enable homed support on systemd
2. Be ignorant that homed support is also needed on pambase.
3. Try to login to to a home directory managed by homed.
4. Experience the unfulfilling feeling that you may be locked out of your home directory forever since you didn't make a proper backup before testing (this is a joke, didn't happen to me).
Actual Results:  
Failure to unlock the user's homed file.

Expected Results:  
Unlock homed as expected.
Comment 1 Mike Gilbert gentoo-dev 2022-01-27 21:57:35 UTC
We need to be careful about circular deps here.