Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#49885 - [util-linux] /etc/environment not sourced by `su -` (with hyphen)
Attached to Project:
Arch Linux
Opened by ilya (leniviy) - Wednesday, 29 June 2016, 11:29 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 20 August 2018, 19:46 GMT
Opened by ilya (leniviy) - Wednesday, 29 June 2016, 11:29 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 20 August 2018, 19:46 GMT
|
DetailsDescription:
/etc/environment is sourced, when you login using text console, desktop manager or ssh, but not sourced by the command `su -` (with hyphen). This is because pam_env module not mentioned in /etc/pam.d/su-l I expect that issuing `su -` will have the same effect as logging in using other methods. Please append extra line to the default config file /etc/pam.d/su-l : session required pam_env.so Additional info: * package version(s) util-linux 2.28-1 Steps to reproduce: - put the following in /etc/environment : AAABBB=cccddd - login using text console - ensure the variable is set: $ echo $AAABBB cccddd - login using su - : $ su - Password: # - ensure the variable is not set: # echo $AAABBB # |
This task depends upon
FS#40633?`session required pam_env.so` and I expected that to happen for `su -l` (but not necessarily just `su`).