Solved

ACL report for \etc directory AIX IBM

Posted on 2014-02-12
5
524 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 104
llcommand 6 110
Unix, date minus 1, 2 or 3 days (last working day) 11 95
grep command usage 10 29
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

734 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