- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Global setting for umask on HP true 64 and HP-UX
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
Discussions
Discussions
Forums
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
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
тАО09-25-2006 03:56 AM
тАО09-25-2006 03:56 AM
Global setting for umask on HP true 64 and HP-UX
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 03:58 AM
тАО09-25-2006 03:58 AM
Re: Global setting for umask on HP true 64 and HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 04:05 AM
тАО09-25-2006 04:05 AM
Re: Global setting for umask on HP true 64 and HP-UX
please also remember the little things about umask.
1. The mask is flipped to umask 777 means not read/write/execute to anybody !
2. umask of 000 does NOT grant execute automatically.
See man umask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 04:07 AM
тАО09-25-2006 04:07 AM
Re: Global setting for umask on HP true 64 and HP-UX
You should also note that the last umask wins so that setting a umask in /etc/profiles does not guarantee that the user does not change the value in his .profile or in a script. A process can set umask (for that process) multiple times as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 05:46 AM
тАО09-25-2006 05:46 AM
Re: Global setting for umask on HP true 64 and HP-UX
Thanks for the info. You mentioned that "setting a umask in /etc/profiles does not guarantee that the user does not change the value in his .profile". Does that mean ".profile" overwrites the value set in the 'etc/profiles'. Also, is there a way to globally set umask on HP Tru-64 and HP-UX similar to Solaris in the '/etc/default/login'?
Thanks,
Willio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 06:25 AM
тАО09-25-2006 06:25 AM
Re: Global setting for umask on HP true 64 and HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 06:54 AM
тАО09-25-2006 06:54 AM
Re: Global setting for umask on HP true 64 and HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:25 AM
тАО09-25-2006 07:25 AM
Re: Global setting for umask on HP true 64 and HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 10:56 AM
тАО09-25-2006 10:56 AM
Re: Global setting for umask on HP true 64 and HP-UX
You are looking for security in all the wrong places. umask is a command in every flavor of Unix. It is a built-in command inside the shell so every user that has shell access can change umask. And they can change it over and over -- it is just a simple shell command.
But umask does *NOT* control the permissions of a file or directory. It only sets the initial value of permission bits when the file is created. The chmod command can change the initial permissions without limit. This assumes that the user is the owner of the file/directory. So regardless of umask, the permissions can be set to anything by the owner of the file.
What you are really asking is perhaps something like: how do I control user behavior? This is called social engineering and the answer is either education or restriction. The restriction answer is: do NOT allow problem users to get a shell prompt. Instead, write a program or shell script that only allows a few selected commands and any attempt to breakout will logout the user.
Bill Hassell, sysadmin