Operating System - Linux
1827808 Members
2274 Online
109969 Solutions
New Discussion

SHLIB_PATH not getting inherited after su <username> command.

 
HARIHARAN N V
Occasional Advisor

SHLIB_PATH not getting inherited after su <username> command.

Hello,

I have the SHLIB_PATH environment variable exported in the current shell. When I do an su , I don't see the SHLIB_PATH environment variable getting inherited. However I'm able to other other user exported variables into the su'ed shell. I have observed this behavior on HP-UX 11i.

Could someone let me know if its a known bug in HP-UX 11i?

Thanks,
Hari
1 REPLY 1
Stuart Browne
Honored Contributor

Re: SHLIB_PATH not getting inherited after su <username> command.

Umm, this is the Linux forums.. Try over there in the HP-UX forums..

Given the name of the variable though, I'm picking it's a reserved variable that get's unset for the new session for security reasons. You'd have to read through the documentation for 'su' and possibly for the shell to confirm that.
One long-haired git at your service...