- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File permission
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
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
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
07-03-2007 05:35 AM
07-03-2007 05:35 AM
File permission
friends
I want set permission to directory
Eg:
A, B, C, D directory
A is parent directory
B sub of A
C sub of B
D sub of C
All directory is have lot of files
All files and directory are owner of user user1;
I want give permission to another user user2 also
So I try
Setacl –m user: user2: rwx A
But this permission A only, Not inside of sub directory and files
Any one tells me, any command for all directory and files permission setting …..?
Thanks
Noble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 05:53 AM
07-03-2007 05:53 AM
Re: File permission
$ setacl -m user: user2: rwx A A/* A/B/* A/B/C/* A/B/C/D/*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 05:59 AM
07-03-2007 05:59 AM
Re: File permission
$chgrp -R newgroupname A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 06:04 AM
07-03-2007 06:04 AM
Re: File permission
# getacl A > aclfile
then
# find A -exec setacl -f aclfile {} \;
If you output the getacl to a file you can then use it with setacl to copy the acl's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 06:46 AM
07-03-2007 06:46 AM
Re: File permission
Dennis Handly
This not A,B,C,D directory
thousands of directorys and files here
so any another method can u tell me ....
thanks
Noble
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 06:59 AM
07-03-2007 06:59 AM
Re: File permission
1000s don't matter if they fit on one command. If you have a fixed directory depth, you can use */* and deeper.
Otherwise you'll have to use find as Court suggested. Except use "+":
# find A -exec setacl -f aclfile {} +