cancel
Showing results for 
Search instead for 
Did you mean: 

getacls

himacs
Super Advisor

getacls

Hi admins,

I want to list the total acl permissions present in the server.Please suggest if any script available for the same.

Server is B.11.23

Regards
himacs
4 REPLIES
Aneesh Mohan
Honored Contributor

Re: getacls

Hi,

for i in `find /etc`
do
getacl $i
done

if you replaced /etc with / it will list all files in the system with getacl permission.


Aneesh
himacs
Super Advisor

Re: getacls

HI Aneesh,

Thanx for the reply.

But the script not givenrequired output.It was listing the acl permission for /etc folder.

And i tried with /etc/*.But the output shows for the file related to etc only.

regards
himacs
Aneesh Mohan
Honored Contributor

Re: getacls

for i in `find /`
do
getacl $i
done
Dennis Handly
Acclaimed Contributor

Re: getacls

>I want to list the total ACL permissions present in the server.

You can do it on all of the files but you'll have to script something to see if these are anything but the default:
find / -exec getacl +

>It was listing the ACL permission for /etc directory.

Aneesh told you that in the first response.

>Aneesh: for i in `find /`

This will just not work. There will be too many files.