System Administration

umask shows wrong when login using telnet and CDE

 
Aungshuman Paul
Regular Advisor

umask shows wrong when login using telnet and CDE

Hi,

My OS version is HPUX 11i v3. When I login using ssh its shows umask 0022. But when login using telnet it shows umask output is 00. And for CDE it shows 02.

Can anyone help regarding this ? Highly appreciate for earlier response.

Aungshu
5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: umask shows wrong when login using telnet and CDE

What do you set umask to in your .profile?
Aungshuman Paul
Regular Advisor

Re: umask shows wrong when login using telnet and CDE

In my profile 022 is set.

Jeeshan
Honored Contributor

Re: umask shows wrong when login using telnet and CDE

what is the umask value set in /etc/profile and .profile?

a warrior never quits
Dennis Handly
Acclaimed Contributor

Re: umask shows wrong when login using telnet and CDE

>In my profile 022 is set.

Do you have any evidence that your .profile was executed with telnet?

For CDE you have to set a variable to get it to source your .profile:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1031244
Bill Hassell
Honored Contributor

Re: umask shows wrong when login using telnet and CDE

The difference comes from the strange behavior of terminal emulators (xterm, dtterm and hpterm) where the default is to completely bypass /etc/profile, and .profile by defaulting to a dumb session rather than a login session). Although there is a halfway solution with DTSOURCEPROFILE=true, it cannot source /etc/profile like a normal long (telnet, rlogin, ssh, etc). You have to fix the emulators by setting loginShell=true like this:

echo "*loginShell=true" >> $HOME/.Xdefaults

Now the emulator will behave like standard logins.


Bill Hassell, sysadmin