Solved

ACL report for \etc directory AIX IBM

Posted on 2014-02-12
5
522 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem Imaging Computers With Clonezilla 2 95
AIX 5.x set up arrow to recall 11 58
Unix Question 19 50
lunix and unix command 21 85
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

808 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