HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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

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.