file permission script

Hi all,

I need one script, that will give the out put like all files having 777 permissions and full path from home directory.

example:i created 777 permissions files three in my home directory and subdirectories also. i want out put like

./xxxxx/aaa.txt
./xxxxx/zzz/yyy.txt
./xxxxx/zzz/aaa.txt

xxxx is the user name.

If any body knows can you please help me out.I would thankful to all.

regards
Krishna Murthy

$cat file1
aaa.txt
/zzz/yyy.txt

$for i in `cat file1`
do
chmod 777 $i
done

hope this is what you need

Hi invinzin21,

Already existing files having rwxrwxrwx permissions.so i want to find those files in all directories(subdirectories also) with path.that is my requirement.
Please help me out.

regards
Krishna Murthy

find . -perm 000777 -print
this is the one :slight_smile: