- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: umask variable , and to set?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 08:53 AM
03-11-2005 08:53 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 09:18 AM
03-11-2005 09:18 AM
Re: umask variable , and to set?
grep -i umask /sbin/rc
hope this helps
B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 09:29 AM
03-11-2005 09:29 AM
Re: umask variable , and to set?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 09:29 AM
03-11-2005 09:29 AM
Solutionjust 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2005 09:29 AM
03-11-2005 09:29 AM
Re: umask variable , and to set?
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.