Operating System - HP-UX
1834377 Members
1815 Online
110066 Solutions
New Discussion

Re: umask variable , and to set?

 
SOLVED
Go to solution
rveri
Super Advisor

umask variable , and to set?

Hi I am using hp-ux 11.11

my user login shell is /usr/bin/ksh

I am wondering from where the umask variable 022 it is taking.

I have found its not defined in

$HOME/.profile
$HOME/.login
$HOME/.cshrc
/etc/profile

afte loggin in I have executed umask and system given 022.

$ umask
022

Can any one help me to find it out.

Thank you,

veri.
4 REPLIES 4
Robert Bennett_3
Respected Contributor

Re: umask variable , and to set?

it's in /sbin/rc

grep -i umask /sbin/rc

hope this helps

B
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
rveri
Super Advisor

Re: umask variable , and to set?

Yes got it ,
it is in /sbin/rc file.


cat /sbin/rc
---------------------
#!/sbin/sh
# @(#)B.11.11_LR

arg=$1
arg2=$2

PATH=/sbin
export PATH

#
# Set termio configuration for output device.
#
/sbin/stty clocal icanon echo opost onlcr ixon icrnl ignpar 2> /dev/null

umask 022

get_scripts() {
state=$1
mode=$2
dir=/sbin/rc${state}.d
... ...
-------------------------------------------

10 Points to you.

Thank you,

Veri.
Robert Bennett_3
Respected Contributor
Solution

Re: umask variable , and to set?

oops -

just checked my answer and look in /etc/profile

grep -i umask /etc/profile

change your umask and then repeat and you will see the new umask.

"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean
rveri
Super Advisor

Re: umask variable , and to set?

Yes got it ,
it is in /sbin/rc file.


cat /sbin/rc
---------------------
#!/sbin/sh
# @(#)B.11.11_LR

arg=$1
arg2=$2

PATH=/sbin
export PATH

#
# Set termio configuration for output device.
#
/sbin/stty clocal icanon echo opost onlcr ixon icrnl ignpar 2> /dev/null

umask 022

get_scripts() {
state=$1
mode=$2
dir=/sbin/rc${state}.d
... ...
-------------------------------------------

10 Points to you.

Thanks Robert,

Veri.