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 Toolybird (Toolybird) - Friday, 26 May 2023, 07:00 GMT
Opened by ilya (leniviy) - Wednesday, 29 June 2016, 11:29 GMT
Last edited by Toolybird (Toolybird) - Friday, 26 May 2023, 07:00 GMT
|
Details
Description:
/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
Closed by Toolybird (Toolybird)
Friday, 26 May 2023, 07:00 GMT
Reason for closing: Won't fix
Additional comments about closing: Old and stale. As per FS#40633 , anyone who needs this can just configure it in /etc/pam.d/*
Friday, 26 May 2023, 07:00 GMT
Reason for closing: Won't fix
Additional comments about closing: Old and stale. As per
FS#40633?`session required pam_env.so` and I expected that to happen for `su -l` (but not necessarily just `su`).