1835228 Members
2661 Online
110078 Solutions
New Discussion

directory permissions

 
SOLVED
Go to solution
MikeL_4
Super Advisor

directory permissions


When going through a recovery exercise one problem we ran into was the permissions on the recovered application directories.

Is there any way to get a list of directories on a server and there permissions ?
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: directory permissions

Mike,

You could try "find / -type d -exec ll {} \;". That will traverse all the way down the directory paths, so you may want to edit the results somewhat.


Pete

Pete
MikeL_4
Super Advisor

Re: directory permissions

I tried that already and it still listed regular files also, not just the directories ??
James George_1
Trusted Contributor

Re: directory permissions

Hi

Try # ll -lR | grep ^d


Rgds / James


forum is for techies .....heaven is for those who are born again !!
baiju_3
Esteemed Contributor
Solution

Re: directory permissions


Slightly Modify the Find command .
Replace ll with ls -ld .


find / -type d -exec ls -ld {} \;


Try it.

Thanks,
bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
A. Clay Stephenson
Acclaimed Contributor

Re: directory permissions

cd to desired starting directoty, / if you wish.

find . -type d -exec ls -ld {} \;
or the more efficient version:
find . -type d | xargs ls -ld

man find, ls, xargs for details:
If it ain't broke, I can fix that.
MikeL_4
Super Advisor

Re: directory permissions

Thanks