Operating System - HP-UX
1822196 Members
3777 Online
109640 Solutions
New Discussion юеВ

defining acl on a directory as default in HPUX

 
SOLVED
Go to solution
ChrisCiti
Occasional Advisor

defining acl on a directory as default in HPUX

Hi,
I'm trying to set the default acl on a directory using the command:
setacl -m default:other:r-x /data

home/cs81563>getacl /data
# file: /data
# owner: psa2
# group: sas3
user::rwx
group::r-x
class:rwx
other:r-x
default:other:r-x


My purpose is to make sure that any files created under the /data folder will inherit the permission of the folder /data.

Is the above command sufficient to do this?
When I did a "touch file" inside the folder, I did not get the same permission as the /data folder.

Please advise.
regards,
chris
2 REPLIES 2
Peter Godron
Honored Contributor
Solution

Re: defining acl on a directory as default in HPUX

Chris,
have you checked the umask etc of the user creating the new files?

See "man acl":
"Note that the default permissions specified for the file owner, file owning group, and others, will be constrained by the umask and the mode specified in the file creatio call."
ChrisCiti
Occasional Advisor

Re: defining acl on a directory as default in HPUX

Hi,
Ok.. looks like I need to check the umask definition. Thanks.
regarsd,
chris