1836446 Members
2403 Online
110100 Solutions
New Discussion

Re: CDE env variables

 
Ray Evans
Advisor

CDE env variables

This has got to have been answered, but my searches came up blank.

I need to set the umask for CDE users and cannot figure out where to make the entry. For telnet, it's /etc/profile - simple enough.

What is the equivalent location for CDE?
10 REPLIES 10
RAC_1
Honored Contributor

Re: CDE env variables

.dtprofile. Also in .dtprofile, set .profile to execute.

Anil
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: CDE env variables

Ray,

In each user's .dtprofile, I set it to source /etc/profile as well:

DTSOURCEPROFILE=true
. /etc/profile;


Pete

Pete
Ray Evans
Advisor

Re: CDE env variables

Thanks, but is there not a way that this can be set globally? I want all my users coming in via CDE to have the same env.
Pete Randall
Outstanding Contributor

Re: CDE env variables

And note the space between the dot and /etc/profile!


Pete

Pete
RAC_1
Honored Contributor

Re: CDE env variables

To set it globally, you may want to have a look at /etc/dtc/config/Xconfig file.
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: CDE env variables

As I said, if you have .dtprofile source /etc/profile, then you can make your changes in /etc/profile and it will work for everyone CDE or not!


Pete

Pete
Ray Evans
Advisor

Re: CDE env variables

I've found a couple references, but still not nailed down.

I want to set the umask value for all CDE users globally.

It doesn't appear that Xconfig is the answer. Sourcing each users .profile as Pete suggested will work, but is not a global solution.

I came across this http://docs.hp.com/en/B1171-90162/ch02s04.html but cannot get any additional syntax info to see if this is the solution.
Pete Randall
Outstanding Contributor

Re: CDE env variables

No, I suggested sourcing /etc/profile.

Write a little sed script to insert the "dot space /etc/profile" line in /home/*/.dtprofile, then change the umask in /etc/profile. Then it's global for everyone.


Pete

Pete
Ray Evans
Advisor

Re: CDE env variables

Pete,

Sourcing /etc/profile in users .dtprofile works and a PERL or SED script can handle adding this entry to existing users. It's not very clean/complete in the event new users are added I will have to revisit it each time.

Thanks for the help. I'll post anything else I find in my travels regarding this issue.

Ray
Pete Randall
Outstanding Contributor

Re: CDE env variables

Ray,

I use sam to add users and in Actions > Task Customization, have added a "command to run after adding users". I'm attaching my command script, which copies a standard set of basic files into the new users' home directory

Pete