- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- system wide umask
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
11-04-2004 05:18 AM
11-04-2004 05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 05:31 AM
11-04-2004 05:31 AM
Re: system wide umask
the global file should be /etc/profile.
The profile execution sequence is /etc/profile and then .profile(user's profile) (for ksh/bash/sh shell users)
You can define umask in /etc/profile, then that can be overridden in .profile.
You can put umask in .profile, but put the owner of .profile to root:root.
This way a user can not modify your seetings in .profile.
But note that a user familiar with umask can modify it at command prompt.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 06:39 AM
11-04-2004 06:39 AM
Re: system wide umask
if [[ $(/usr/bin/id -u) -eq 0 ]]
then
umask 077
else
umask 022
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2004 08:36 AM
11-04-2004 08:36 AM
Re: system wide umask
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 12:35 AM
11-08-2004 12:35 AM
Re: system wide umask
I have no umask in /etc/profile or our system
wide custom /usr/local/etc/profile, etc...
I have commented out root's umask from .profile.
When I do a "remsh host1 umask" I get 022.
This is the only system that has the
umask set to 022 globally. All the others are 00.
I checked /sbin/rc and there is a umsak 022 on all the systems but they are still 00 globally. I also check /sbin/init.d/* and
they are all the same.
Where is 022 getting set on host1??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 06:23 AM
08-19-2005 06:23 AM
Re: system wide umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 09:24 AM
08-19-2005 09:24 AM
Re: system wide umask
ways to set the umask but to set it as
a global default on that server we set
it in the HP-UX default files /etc/profile for sh,ksh and /etc/csh.login for csh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 09:32 AM
08-19-2005 09:32 AM
Re: system wide umask
in /sbin/init.d/inetd. inetd will then
have umask set for the services it provides.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 10:13 AM
08-19-2005 10:13 AM
Re: system wide umask
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:33 AM
08-22-2005 06:33 AM
Re: system wide umask
See yah.