1752745 Members
4758 Online
108789 Solutions
New Discussion юеВ

permission query

 
SOLVED
Go to solution
himacs
Super Advisor

permission query

Hi Admins,

I want to provide 777 permission for a particular user for all the files under /data.
Actually all the files are owned by oracle:dba.

To achieve this i think to set a cron entry ..

* * * * * /usr/bin/setacl user:flexuat:rwx /flexdb02/atmrecon/*


will it work?


regards
himacs

3 REPLIES 3
Jeeshan
Honored Contributor
Solution

Re: permission query

use parameters like -m, -s

see man page

#man setacl
a warrior never quits
Michael Steele_2
Honored Contributor

Re: permission query

HI

Looks good. What is the error message? 'setacl' may conflict with setgid.

setgid will cause any new files to inheirit the owner and group of the file

umask on the owner and set in the owner's .profile file with set permissions to the same level for all files written/created, not just one dir.

And, as mentioned above, setacl

setacl -m user:nrallis:rwx /dir/*
Support Fatherhood - Stop Family Law
himacs
Super Advisor

Re: permission query


Yes Admins,

I missed to mention -m with setacl in the thread.

cronjob running fine..and user can access all the existing and newly created files.



Regards
himacs