|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Default ACL not working with newly created files in HP-UX
Hi,
I have been struggling with this problem for 4 days now. I have folder named "import" owned by user "crcftp" belonging to group "users". The permissions set on the import folder are - drwxrwxrwx+ The plus sign i presume is due to the fact that i have set acl for the users "crcftp" and "oracle" using the following commands. setacl -m d:u: crcftp:rwx import setacl -m d:u: oracle:rwx import Next, I create flatfile through Oracle Procedures (UTL_FILE package) in the folder import However, the newly created file does not seem to inherit the default ACL through inheritance. When i perform a getacl on the newly created file (owner - oracle, group - dba), I get the following output: # file: test5.txt # owner: oracle # group: dba user::rw- user: oracle:rwx #effective:--- user:crcftp:rwx #effective:--- group::--- class:--- other:--- The umask setting for this user (crcftp) is 022 My OS Version is HP-UX B.11.23 Would be really grateful if somebody can help me with this. Thanks and regards, Tabish |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
When you run the utl_file package, oracle overrides local settings, and you get the value of umask permissions of the user running the code.
This is oracle behavior. See the DIRECTORY OBJECT. Also read about the security model for UTL_FILE_DIR: UTL_FILE |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Thanks Jim.
But shouldnt default ACL permissions (using setacl) override the umask permissions? Why am I getting effective permission of --- instead of rwx as per default ACL setting of the directory containing the file? |
|
#4
|
|||
|
|||
|
I have never set acl's on the UTL_FILE_DIR directory because oracle can override them.
This is because a file creator (oracle) has to have write access to the directory in order to create the file. Per POSIX rules: Any file owner with write access to the directory that file lives in can do anything the owner wants to permissions and ownership of the file. Including mv it to another directory the owner has write access to. I guess, that your expectation and what oracle does do not appear to match. It is nothing abnormal. I have had lots of problems in the past with oracle-created files and permissions. |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
So I guess the only way to achieve what i intend to, is by altering the umask setting for oracle user.
|
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Hi Jim,
I have set the umask to 022 for oracle user. But it still doesnt resolve my issue. I am getting the permission string as -rw------- for a new file created in the same directory. Is there anything else i need to do? My Oracle Database version is: 11.1.0.7.0 - 64bit |
| Sponsored Links | |
|
|
#7
|
||||
|
||||
|
Why are you using ACLs in the first place?
What were you trying to achieve? |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't see Newly created LUN by SAN admin | janakors | Solaris | 12 | 01-25-2012 12:03 PM |
| default size of a newly created folder | anishkumarv | UNIX for Advanced & Expert Users | 1 | 03-15-2011 12:56 PM |
| sftp - get newly created files on incremental basis | ravi.videla | Shell Programming and Scripting | 15 | 12-20-2010 02:01 AM |
| Help with command to find all newly created files in a given time period | bbzor | UNIX for Dummies Questions & Answers | 2 | 01-12-2010 03:16 PM |
| Newly created files default group and write permissions | goldfish | UNIX for Dummies Questions & Answers | 2 | 02-20-2008 05:39 PM |
|
|