Operating System - HP-UX
1833883 Members
1931 Online
110063 Solutions
New Discussion

showing numeric permissions

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

showing numeric permissions

Hi all, do You know if it is possible to show file or directory permission list in "numeric" mode?

Thank You
Ubi maior, minor cessat!
2 REPLIES 2
Zeev Schultz
Honored Contributor

Re: showing numeric permissions

I usualy use find -perm to seek for a certain
chmod mask (man chmod to see 'em all).Like if I need to find group writable files:
find . -perm 0020.

Of course you can use OR ( ||) in find to list
all cases :)

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Pete Randall
Outstanding Contributor
Solution

Re: showing numeric permissions

I'm attaching a script called "getchmod", courtesy of Jack Mahaffey, which will give you the numeric values.
Usage: getchmod
ex: getchmod /sbin/vgscan
. getchmod /sbin/*

Pete