Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767784 - sys-auth/pambase: support systemd-homed
Summary: sys-auth/pambase: support systemd-homed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-28 22:11 UTC by Erik Quaeghebeur
Modified: 2021-02-01 19:41 UTC (History)
2 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 Erik Quaeghebeur 2021-01-28 22:11:22 UTC
Systemd with the homed use flag installs homectl and related software for setting up and managing ‘portable’ home directories. This home directory management approach has some advantages for me and I wanted to use it. However, it seems that the configuration in /etc/pam.d is not adapted to allow logging in (there are some changes to systemd_user, but these are apparantly for something else).

My enhancement request is that the appropriate changes are made in /etc/pam.d to support logging in to ‘portable’ home directories, when systemd has the homed use flag activated.

I looked at modifying /etc/pam.d files myself, but I do not have the requisite knowledge. Some resources I encountered:

* https://www.freedesktop.org/software/systemd/man/pam_systemd_home.html
* https://wiki.archlinux.org/index.php/Systemd-homed#Installation
* https://wiki.odex.be/Usage/Configuration/S/Systemd-homed
* https://archived.forum.manjaro.org/t/systemd-homed-setup/134074/2
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-28 22:18:42 UTC
zlogene and I are on this, but currently hitting some walls.

Even using the same PAM config as other distros which have it working (e.g. Arch) as a last resort haven't worked, so I think I'm missing something.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-28 22:20:28 UTC
Yea, I did this in the past but forgot how I fixed all the issues I encountered in the way
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-28 23:51:11 UTC
Made progress! Now working on a draft patch for pambase.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-31 21:36:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/pambase.git/commit/?id=639b45ccb986de7314372a4a841e6f04c536c49a

commit 639b45ccb986de7314372a4a841e6f04c536c49a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-01-29 03:46:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-01-29 03:46:42 +0000

    Add systemd-homed support
    
    Bug: https://bugs.gentoo.org/767784
    Signed-off-by: Sam James <sam@gentoo.org>

 pambase.py                   | 1 +
 templates/system-auth.tpl    | 6 ++++++
 templates/system-session.tpl | 4 ++++
 3 files changed, 11 insertions(+)
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-02-01 19:41:15 UTC
pambase-20210201 has been released. For more information (for now) you can take a look at my reddit post[1].

[1] - https://www.reddit.com/r/Gentoo/comments/labx84/systemdhomed_is_now_alive/