Solved

ACL report for \etc directory AIX IBM

Posted on 2014-02-12
5
514 Views
Last Modified: 2014-02-12
is there anyway to a do an acceess control list report for all sub folders/files within \etc on an AIX IBM system? i.e. owner and permissions, in a single report?
0
Comment
Question by:pma111
  • 3
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39853048
For directories:

find /etc -type d | while read item; do echo "*\n--- $item ---"; aclget $item; done

For files:

find /etc -type f | while read item; do echo "*\n--- $item ---"; aclget $item; done

add "> reportfile.txt" to create an outputfile.
0
 
LVL 3

Author Comment

by:pma111
ID: 39853055
could you give/upload a sample of the output if it doesnt expose any sensitive informaiton...
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39853063
*
--- /etc ---
*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(root):  rwx
    group(system):  r-x
    others:  r-x
extended permissions
    disabled
*
--- /etc/.tls ---
*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(root):  rwx
    group(system):  r-x
    others:  r-x
extended permissions
    disabled
*
--- /etc/.tls/rootCA ---
*
* ACL_type   AIXC
*
attributes:
base permissions
    owner(root):  rwx
    group(system):  ---
    others:  ---
extended permissions
    disabled

Open in new window

0
 
LVL 3

Author Comment

by:pma111
ID: 39853068
does others typically mean everyone?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 39853076
Yes.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now