- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file permissions don't match 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
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-06-2007 06:10 AM
тАО09-06-2007 06:10 AM
User runs an application on server1 which connects to an oracle database on server2. server2 writes out to a directory on server2 that is nfs mounted from server1.
umask for all users on both servers is set to 022.
directory permissions are
drwxrwsr-x 2 bintmgr dba 16384 Sep 6 03:15
file writes out as :
-rw------- 1 oracle dba 28063 Aug 31 09:56 CUSP020A.lis
Why is there no read permission for the group?
I need to have read permission for the group and the umask is set properly but the file writes out different permissions that the umask.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:22 AM
тАО09-06-2007 06:22 AM
Re: file permissions don't match umask
The file already exists with 600 permissions.
The umask of oracle is not really 022. If a change to the umask was made, was oracle taken down and restarted so the change was enabled ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:26 AM
тАО09-06-2007 06:26 AM
Re: file permissions don't match umask
su - oracle
umask
022
The oracle database is started through a root cron job. root umask is also 022.
If I touch a file in the offending directory from either root or oracle it shows up as
rw-r--r--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:32 AM
тАО09-06-2007 06:32 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=675215
Here is the exerpt.
---------------------------------------------
Oracle stored procedures do not use the .profile when they shell out and create files.
Therefore no umask.
Therefore no default permissions.
The fix is one of the following:
1) Have the stored procedure issue a chmod command after creating the file.
2) Have the stored procedure call a script that incldues the .profile parameters prior to creating files.
---------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2007 06:36 AM
тАО09-06-2007 06:36 AM