ABHIONLINUX
Site useful for linux administration and web hosting

Showing posts with label file permissions. Show all posts
Showing posts with label file permissions. Show all posts

2009/12/16

Check file and directory permissions under present working directory

Below commands can be used to check file and diretcory permissions under the present working diretcory (pwd)

* Check files with permission 755

root@master [~]# find $x -type f -perm 755

* Check files with permission 777

root@master [~]# find $x -type f -perm 777

* Check diretcory with permissions 777

root@master [~]# find $x -type d -perm 777

* Check diretcory with permissions 000

root@master [~]# find $x -type d -perm 000

You can change the permissions to the value you you want to search.