1833787 Members
2553 Online
110063 Solutions
New Discussion

CDE and umask

 
SOLVED
Go to solution
Sébastien N
Advisor

CDE and umask

Hello,
(HP-UX 11i)

I have set umask to 022 in /etc/profile for telnet connections. I want to do the same with CDE logins...

I found I needed to create a link on /etc/profile in /etc/dt/config/Xsession.d but it doesn't work (umask is always set to 02).
I stopped/started the dtlogin daemon with no success (the /.dt/startlog file doesn't show that the /etc/profile file is always not read...

How to do ?

Thanx.
5 REPLIES 5
David Bell_1
Honored Contributor

Re: CDE and umask

Sebastien,

Uncomment the following line:

#DTSOURCEPROFILE=true

This is the last line in the .dtprofile

This will cause the profile to be read when logging in to CDE. It is located in /$HOME/.dt

HTH,

Dave
John Dvorchak
Honored Contributor

Re: CDE and umask

To get CDE to read the .profile you have to edit .dtprofile in the user's home directory and place the line:

DTSOURCEPROFILE=true

and then to get it to read the /etc/profile for system wide setups I also include the line:

. /etc/profile

that gets it to "source" the /etc/profile file.
If it has wheels or a skirt, you can't afford it.
Sébastien N
Advisor

Re: CDE and umask

Is it possible to define somewhere a default umask used for ALL CDE connections ?
Alex Glennie
Honored Contributor
Solution

Re: CDE and umask

for all users :

Create a script in '/etc/dt/config/Xsessions.d' to contain the
following information:

umask 77 # or desired value
chmod 755 /etc/dt/config/Xsessions.d/<script_name>


Perform the following steps to set the umask for a single user on a
CDE login:

1. Add the following line to '$HOME/.profile':

umask 777 # or desired value

2. chmod 755 $HOME/.profile
Ray Carlson
Frequent Advisor

Re: CDE and umask

If you happen to be using HPux 11.22, un-comment the umask 022 line in /etc/default/security.
Ray