1821639 Members
3325 Online
109633 Solutions
New Discussion юеВ

Find File Permissions

 
SOLVED
Go to solution
YOGI_3
Frequent Advisor

Find File Permissions

Hi all,
I want to find write permission for others for dir and there files in entire system.
Is it possible, if yes pl let me know..


Thanks..
Yogesh
There is never a wrong time to do the right things
5 REPLIES 5
Tom Smith_9
Frequent Advisor
Solution

Re: Find File Permissions

The find command can do this easily.

find /home/smith -type f -perm -002 -exec ll {} \;

Would show you all files that are world write.

or

find /spprod01 -type d -perm -o=w

Would show allow directories with world write.

Hope this helps.
G. Vrijhoeven
Honored Contributor

Re: Find File Permissions

Hi,

You could use the find command.

Man find

(#find / -perm +w ) if i am correct?)

Regards,

Gideon
Mel Burslan
Honored Contributor

Re: Find File Permissions

find /filesystem -xdev -type d -perm -o=w

where

-xdev : prevents find command tripping into other sub-filesystems

-type d : find only directories

-perm -o=w : files writable by others (world write=security risk)
________________________________
UNIX because I majored in cryptology...
Q4you
Regular Advisor

Re: Find File Permissions

find / -depth -local -xdev -type d -perm -o=w -print

will do it.
Arunvijai_4
Honored Contributor

Re: Find File Permissions

find / -type f -perm -002 -exec ls -l{} \;

It will start finding from / and give a list.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"