[SunHELP] how to find out what files a user or group has access to.

Phil Stracchino phil.stracchino at speakeasy.net
Thu Apr 26 08:56:58 CDT 2007


Grindell, Joan M. wrote:
> Good morning all,
> 
> 	I'm pretty sure there is a way of finding out what files a
> particular user or group has access to and what type of access they
> have.  I think the find command will probably work but I don't know the
> arguments I need to use.
> 
> 	Any help would be appreciated.

The capabilities of Sun and GNU find differ.  Which are you using?

Basically, with Sun find, you're going to want something like this:

find / -user USERNAME -ls
find / -group GNAME -ls

With GNU find, you can use this syntax, but also have the option of:

find / -uid nnn -ls
find / -gid nnn -ls


If in doubt, 'man find' is your friend.



-- 
 It's not the years, it's the mileage.
 Phil Stracchino              phil.stracchino at speakeasy.net
 Renaissance Man, Unix generalist, Perl hacker, Free Stater
 Landline: 603-429-0220                Mobile: 603-320-5438



More information about the SunHELP mailing list