On 04/02/2013 02:34 PM, Linda Walsh wrote:
Andrey Borzenkov wrote:
В Thu, 28 Mar 2013 17:47:16 -0700 Linda Walsh
пишет: Andrey Borzenkov wrote:
Linda Walsh
пишет: su is resetting key variables (majority are NOT changed): LS_OPTIONS & PATH PS1 REMOTEHOST DISPLAY
Neither of these are touched by su with or without "-p".
They weren't on 12.1 nor on 12.2
But they are on 12.3 and factory -- something is resetting them So check your startup files where these variables are set and whether the same startup files are executed in both cases.
Startup files don't set them. pam_env.so sets them.
To be a little bit more correct, pam_env.so doesn't set them either but after su completes, /etc/profile is re-read. which also re-reads /etc/profile.d/* and changes LS_OPTIONS and PATH based on your new uid. you can test it by commenting line 27 of /etc/profile.d/ls.bash out or adding FOO='bar' under it. after your new su session you will see a difference. i can only assume that if /etc/profile is being source again, other shell startup files are also re-sourced. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org