- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: file permissions don't match umask
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- Report Inappropriate Content
09-06-2007 06:36 AM
09-06-2007 06:36 AM
Re: file permissions don't match umask
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP