- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recursive usage of setacl & getacl command
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
Forums
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
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
тАО01-04-2008 08:56 AM
тАО01-04-2008 08:56 AM
Can anyone provide me with the command option for setacl & getacl HPUX commands.
I need to set the ACL permission for the directory & the sub-directory & files recursively. (Similar to chmod -R)
OS: HP-UX 11.11
Thanks,
Shameer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 09:00 AM
тАО01-04-2008 09:00 AM
Re: Recursive usage of setacl & getacl command
for file in `find /startdir`
do
setacl
done
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 09:03 AM
тАО01-04-2008 09:03 AM
Re: Recursive usage of setacl & getacl command
myscript.sh contains something like:
getacl $1
setacl ...... $1
then you run it with:
find
???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2008 10:55 AM
тАО01-04-2008 10:55 AM
Re: Recursive usage of setacl & getacl command
I suggest to create two ACL-files (see the option '-f' in 'man setacl'):
one for directories (containing default ACLs for objects created in the future) - e.g. /tmp/mydir.acl - and one for plain files - /tmp/myfile.acl .
Then use
find mydir -type d | xargs setacl -f /tmp/mydir.acl
find mydir -type f | xargs setacl -f /tmp/myfile.acl
Use an additional option '-n' if you think so after having read the corresponding section in the man page.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 07:44 AM
тАО01-06-2008 07:44 AM
Solutionfind /tmp/
find /tmp/
Cheers
Akram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 11:12 AM
тАО01-06-2008 11:12 AM
Re: Recursive usage of setacl & getacl command
Shameer,If u want to use setacl and get acl,follow this......
suppose the current directory is:
/home/yogesh/shameer/personal/logs.Whose owner and group is yogesh:yogesh...
1]check out your current directory.
#pwd
ex./home/yogesh/shameer
2]If you want to set the acl for directory personal, for the user shameer, to whom you wana assign rwx permission.Below is the procedure.."Well -R option is not there for acl."
#setacl -m user:shameer:rwx personal
It will set acl to the folder "personal" and shammer can use that folder w/o any restriction.
3]If you wana check the acl details for the directory "personal".Go to /home/yogesh/shameer n Just run..
# getacl personal.
You will get the details of the same.For more detals check man setacl and getacl.
I hope you, understood what am trying to explain.If you are happy with my explanation, please do assign the points.
cheers!!!
-Yogesh