#!/usr/bin/perl -w # trying to map acls use Getopt::Long; use File::Find; no warnings 'File::Find'; my $optuser = ''; my $findroot = ''; GetOptions('user:s' => \$optuser, 'root=s' => \$findroot); unless( $findroot ){ print<; while (my $acl=){ if($optuser){ $acl =~ /user:$optuser\s/ && print "$File::Find::name $acl"; } else { print "$File::Find::name $acl"; } } }