Operating System - HP-UX
1832642 Members
3487 Online
110043 Solutions
New Discussion

Re: Difference in su between 10.20 and 11i??

 
Matthew Pegge_1
Frequent Advisor

Difference in su between 10.20 and 11i??

Hi,

We're having problems with some environment variables being set when running certain applcations on 11i.
Basically on 10.20 when I do a su (no - ) and then echo $ (no -) and echo $ nothing is shown!?
Is there anything different between the two OS versions with su?? It's a long shot I know!! ;o)
4 REPLIES 4
Ravi_8
Honored Contributor

Re: Difference in su between 10.20 and 11i??

Hi,

haveyou set the PATH for the variable in /etc/PATH file?
never give up
Stefan Farrelly
Honored Contributor

Re: Difference in su between 10.20 and 11i??

I dont think its anything to do with 11i. Ive tried it on a couple of 11i servers and all the env variables are passed through aok when I su . If its not working for you its a local problem with your environment or os setup.

Which variable are you talking about in particular and how is it defined (before you do a su ) ? Is it exported properly ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Gerhard Roets
Esteemed Contributor

Re: Difference in su between 10.20 and 11i??

Well first lets look at the following.

su (no - ), implies Switch User and do not run any of the login scripts. This has been the standard for a very long time. If I were you I would first look at the first user and if the users path is correct.

I would also look at the $ENV variable and see if that has been tweaked, you can manipulate the path in there, and this could have an influence.

If you look at the /etc/PATH file its permissions should be 444 so anyone can read it.

HTH
Gerhard
Matthew Pegge_1
Frequent Advisor

Re: Difference in su between 10.20 and 11i??

Guys... I've fixed it. I missed a vital bit of info out. The actual variable that was not being passed was SH_LIB. This is a known problem and is fixed by PHCO_27781. Thanks for all your help anyway!