- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Umask root?
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
05-11-2001 07:16 AM
05-11-2001 07:16 AM
Umask root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 07:25 AM
05-11-2001 07:25 AM
Re: Umask root?
My 2 cents, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 07:28 AM
05-11-2001 07:28 AM
Re: Umask root?
My preference is to provide a 'umask' of at least '022' or even '027' for root in its /.profile. I find it easier to "open-up" permissions later than to have to tighten them done after the fact.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 07:30 AM
05-11-2001 07:30 AM
Re: Umask root?
I would leave it like that , even i case they are to write they can change it , your problem looks to be more of functional in nature.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 06:08 PM
05-11-2001 06:08 PM
Re: Umask root?
I would set umask as a MINIMUM to 022 right now in /etc/profile so all users have protection for their own files. root might be 022 but a more secure setting is 077 which prevents all users from accessing any file or directory until root makes a conscious decision to open up permissions.
To find all the errors, I would run the following commands to locate problems:
for DIRS in / /opt /usr /stand
do
find $DIRS -xdev -perm 777
done
Repeat the same commands but change 777 to 666 and run again. Then correct all the bad permissions.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2001 05:41 AM
05-14-2001 05:41 AM
Re: Umask root?
Bill's right - change the umask setting as soon as possible in the /etc/profile file. You will also want to set the umask in the /etc/login file for your csh and tcsh shell users.
Also, keep in mind that users can override their default umask setting by issuing the command themselves so educate them on what it is and why it is what it is.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2001 04:28 AM
05-15-2001 04:28 AM
Re: Umask root?
Tell me something (I do agree with both your comments), when I trust a system, I've been told that the default umask of "0" is changed to 07077, so nothing needs to be done to tighten up umask. I've been looking where this is set and cannot find it. Can you clear this up for me. Should I go and set the 022/077 umask on the /etc/profile anyway?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2001 05:15 AM
05-15-2001 05:15 AM
Re: Umask root?
/etc/profile is probably not the most secure place to spot the "umask 0xxx". The X sessions will not run through that automatically.
Better places: /sbin/rc, /sbin/rc.utils, ... .
and additionally /etc/profile, /etc/login for the login shells started from getty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2001 05:49 AM
05-15-2001 05:49 AM
Re: Umask root?
Where is the umask set when the server is trusted. I don't see it (can't find it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2001 06:51 PM
05-15-2001 06:51 PM
Re: Umask root?
On an un-trusted system, by default login programs such as telnet and rlogin
set the umask to 00. On an un-trusted system, the umask is set in the login
script file. That file will be different depending on how you login. It is set
in the following places:
1. telnet = either ~/.profile or if that doesn't exist then /etc/profile
2. vue = either ~/.vueprofile or if that doesn't exist then /usr/vue/config/sys.vueprofile
3. cde = either ~/.dtprofile or if that
doesn't exist then /usr/dt/config/sys.dtprofile
You can set the umask for
login programs in the user login scripts(/etc/profile or /etc/login or .profile/.cshrc). Also you can set the umask per user in .dtprofile and .vueprofile for CDE and VUE
However, Trusted system design recognizes how critical this setting is to the system's health and set umask to 077, the most restrictive possible for non-owners/groups. I have not found where it is set though...probably in a program rather than a script. You can override the value but as mentioned before, good security means trust nobody until proven otherwise. Make a conscious decision to open up privileges.
Bill Hassell, sysadmin