- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: setcl
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
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
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-17-2009 11:08 AM
тАО07-17-2009 11:08 AM
i am giving setacl permission for a folder.But it has more than 200 files.Is there any option with setacl to give permission to all 200 files.
quick response is highly appreciated
regards
himacs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 11:19 AM
тАО07-17-2009 11:19 AM
SolutionYou can specify multiple files like:
setacl [-n] -f acl_file file...
The elipses after "file" (i.e. "file...") mean that you can repeat this argument.
Hence you could do something like:
# FILES=$(find /path -xdev -type f)
# setacl -f acl_file ${FILES}
For details, see:
http://docs.hp.com/en/B2355-60130/setacl.1.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 11:21 AM
тАО07-17-2009 11:21 AM
Re: setcl
setacl ..... *
where the shell expands the "*" to all of the names found.
of course, if there are subdirectories, that might cause an issue. you could also use "find .... -exec setacl ..." to locate any files and the run the setacl.
I'm sure there are other ways as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 11:27 AM
тАО07-17-2009 11:27 AM
Re: setcl
find
all the files/directories in a particular directory ,use below
setacl -m u/g:permission:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 12:29 PM
тАО07-17-2009 12:29 PM
Re: setcl
thanx for the repliesss.
i am thinking to write a loop script for this.
But my concern is subfolders..
regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 12:39 PM
тАО07-17-2009 12:39 PM
Re: setcl
> i am thinking to write a loop script for this. But my concern is subfolders..
I already offered a solution that will collect the files from subdirectories. Why do you want to write a loop...and to do what? See my original suggestion.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 12:52 PM
тАО07-17-2009 12:52 PM
Re: setcl
yes James,
full points..
regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-17-2009 12:55 PM
тАО07-17-2009 12:55 PM