New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd does not read .pam_environment #4811
Comments
Hmm, I presume ~/.pam_environment is a file read by the pam_env module? Is that even enabled on your distro for the systemd user session? Closing this, as systemd is not in the business of reading ~/.pam_environment, as that's not a generic configuration file, but something some PAM module which might or might not be installed is supposed to read... This all looks like a local misconfiguration. Please investigate, and make sure to file a bug against your distro or pam_env, but not systemd. |
Hmm I poorly chose the words for my bug report title. I apologize for that. The file The thing is, I expected that the |
did you check that $XDG_CONFIG_HOME is actually set for the systemd --user instance? i.e. that it is shown in /proc/$PID/environe of the instance? |
That's the point, it is not set. It's like the |
This really looks as if you don# actually have pam_env in your pam stack for systemd --user. It's not listed in |
At least in Debian/Ubuntu, |
Yeah, that was it. Sorry for the inconvenience, I know this is not an helpdesk. Keep up the good work. |
I found this thread from search engine, and thanks for your hint, I put
I would suggest systemd to try to read Below is my workaround solution: |
Submission type
systemd version the issue has been seen with
Used distribution
Expected behaviour you didn't see
I overrode
$XDG_CONFIG_HOME
in my.pam_environment
file like this:Since systemd reports to obey the XDG Path specification I was expecting that it would look for unit files in the overridden path.
Unexpected behaviour you saw
systemd insists in looking for unit files in
~/.config
.Steps to reproduce the problem
Add the line
XDG_CONFIG_HOME DEFAULT=@{HOME}/.local/etc
to~/.pam_environment
and restart the user session or reboot the system.The text was updated successfully, but these errors were encountered: