- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Finding ACLs
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
10-05-2006 01:58 AM
10-05-2006 01:58 AM
Any comments, suggestions??
Points will be awarded based on the solution and comments.
Thanks.
Solved! Go to Solution.
- Tags:
- ACLs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 02:08 AM
10-05-2006 02:08 AM
Re: Finding ACLs
see man lsacl:
" List ACLs for all files under mydir:
find mydir -print | sort | xargs lsacl
"
- Tags:
- lsacl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 02:27 AM
10-05-2006 02:27 AM
Re: Finding ACLs
lsacl: file "./oracleinstallfiles/9iclient/Disk3/stage/Components/oracle.options.intermedia.imserver/9.2.0.1.0/1": Operation not supported (errno = 223)
so my intention is to find out only the files which are set with ACLs starting from / level.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 02:41 AM
10-05-2006 02:41 AM
Re: Finding ACLs
depends on what filesystem setup you have.
Should work on hfs, but fails on vxfs.
Alternative is to either you find -acl (same problem), or use ll as thre will be a '+' at the end of the permissions section for each acl file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 02:46 AM
10-05-2006 02:46 AM
Re: Finding ACLs
getacl - list access control lists (ACLs) for files (JFS File Systems
only)
I have JFS filesystems and don't want to do on /stand which is HFS.
- Tags:
- getacl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 05:44 AM
10-05-2006 05:44 AM
Solutionif you want to ignore files without ACLs sort them out before feeding them to getacl (which will work well for JFS filesystems) or leave the getacl-call:
find mydir -print | xargs ls -god |
awk '$1 ~ ".*+$" {print $NF}' | xargs getacl
You will get problems with xargs with filenames containing spaces (as usual).
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 06:06 AM
10-05-2006 06:06 AM
Re: Finding ACLs
I ran your command and don't know what I am getting from it.
At present my current directory shows + sign for one directory only and doesn't have ACL for files inside it.
drwxrwsr-x+ 2 test test 4096 Sep 29 10:30 validate
Would you please explain?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2006 10:59 PM
10-05-2006 10:59 PM
Re: Finding ACLs
if you have a directory reported like this
drwxrwsr-x+ 2 test test 4096 Sep 29 10:30 validate
you have ACLs on it, which should be reported by
getacl validate
Ir does NOT mean, that file in this directory have ACLs as well: The mode of the directory may have been changed after the creation if files in it, and so the 'inheritance ACLs' (if an should be present) just did not exist at creation time.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2006 12:59 AM
10-06-2006 12:59 AM
Re: Finding ACLs
# getacl validate
# file: validate
# owner: test
# group: test
user::rwx
user:sastest:rwx
group::rwx
class:rwx
other:r-x
So what would be the difference between normal file and ACL file ? You mean to say at the creation time ACL might have been set but it changed later?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2006 01:09 AM
10-06-2006 01:09 AM
Re: Finding ACLs
your user sastest will have rwx priv on validate
So can limit to individual users, if you so wish, rather than groups.