Operating System - HP-UX
1834862 Members
2452 Online
110070 Solutions
New Discussion

Trying to set system wide variable for CDE login

 
SOLVED
Go to solution
Chris_305
Occasional Contributor

Trying to set system wide variable for CDE login

I set the /etc/profile variable for SHLIB_PATH and when I tried setting it for CDE login I fail. I can't seem to find out where to set this variable so whom ever logs in gets the variabel SHLIB_PATH if it hasn't been set already.

Thanks for your help.
if I only knew I wouldn't be here-- ???
3 REPLIES 3
Ian Kidd_1
Trusted Contributor
Solution

Re: Trying to set system wide variable for CDE login

/etc/profile is not read by default when users login via CDE. you can change this by making a link and modifying permissions:

#ln /etc/profile /etc/dt/config/Xsession.d/profile

#chmod +rx /etc/dt/config/Xession.d/profile.

Alternatively, you can copy:
sfu cp -p /usr/dt/config/sys.dtprofile /etc/dt/config/sys.dtprofile

and edit the one in /etc with whatever variables you want. HOWEVER, this would only affect new users - you would need to modify .dtprofile in all the current users' home directory via this method.
If at first you don't succeed, go to the ITRC
Ian Kidd_1
Trusted Contributor

Re: Trying to set system wide variable for CDE login

slight case of fat-fingering my reply. For the chmod portion:

# chmod +rx /etc/dt/config/Xsession.d/profile

NO period at the end, and it's Xsession.d, NOT Xession.d

this should work for 11.00, but I'm not sure if it would would on 10.20. What version on HP-UX are you running?
If at first you don't succeed, go to the ITRC
Chris_305
Occasional Contributor

Re: Trying to set system wide variable for CDE login

I am running HP-UX 11.i. It worked. I copied sys.dtprofile over and edited the users that have already been logged in.

Thanks for your help.
if I only knew I wouldn't be here-- ???