- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Umask value problem
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
07-24-2001 08:24 PM
07-24-2001 08:24 PM
Umask value problem
I have a crazy problem. Most of the processes running in the server are creating files with the following permission -rw------. Even though in my /etc/profile i have the umask value for users oracle, root are set as 022 and for all other users 002. But even the files created by processes run as root have -rw------. Is there any solution for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 09:09 PM
07-24-2001 09:09 PM
Re: Umask value problem
by setting umask in your .profile file should set your umask. have you executed profile file
#. ./.profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 09:11 PM
07-24-2001 09:11 PM
Re: Umask value problem
Please Check up whether any other system wide umask is set or not?
Manually U can check by setting the umask value and creating files. Follow these
#umask 777
#touch asd
#ll asd
Now asd's permission should be ---------.
#umask 000
#touch asd1
#ll asd1
Now permission is rw-rw-rw. Normally umask will not give executable permission. If U want to set executable permission use chmod command.
#umask 002 will give rw-rw-r permission
#umask 022 will give rw-r--r-- permission.
For more information see man page of umask and chmod.
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 09:13 PM
07-24-2001 09:13 PM
Re: Umask value problem
So you should check the ~/.profile and set the correct umask for that user .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 09:18 PM
07-24-2001 09:18 PM
Re: Umask value problem
Time for a little lesson. First, eventhough umask is set in /etc/profile, it can still br set later by the user's .profile. You need to check there or better yet from the shell do a umask and see if the value is what you expected.
Now let's suppose that your umask is set to 000. You would expect that all files created would have permission 777. But that is not the case because it also depends upon the creation mask.
In this example I'll use a umask of 002 and a creation mask of 0666.
At the system level, when a file is created, a call is made to creat("/tmp/myfile",0666)
Umask masks off the nonzero bits of the creation mask to actually create a file with permissions 0664 or rw-rw-r. In this case, if the umask had been set to 000 then the file would have been created with 666 permissions.
I suspect that there is nothing wrong, it's just that the combination of creation_mask and umask are not what you expect.
I hope I've been clear, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 04:32 AM
07-25-2001 04:32 AM
Re: Umask value problem
Attention the /etc/profile is a commun file for all user and the individual .profile file is overwritten what the /etc/profile is doing.
So normally, the .profile file for each user is complemantary to the /etc/profile.
You have to have a look to your .profile file and to set it to your desired value.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 06:10 AM
07-26-2001 06:10 AM
Re: Umask value problem
All of the other replies are correct. However, you must also consider how you are logging in. By default, /etc/profile and the user's .profile are NOT read during a CDE login.
You probably want to set umask once in /etc/profile, then source /etc/profile during CDE logins. That way, everyone gets the same umask, no matter how they login.
To do that, you must modify /etc/profile to be CDE safe (fairly simple). Then, put a link to /etc/profile in /etc/dt/config/Xsession.d
--Joe