Linux Command Line - List all non-accessible files and folders -
I am trying to list all the files and folders that I do not have permission to read or modify.
Thanks
The file has three types of rights for the file owner , Is a file for group members and one for all is not read / unreadable files for all files that you have read / writeable by any one group and are not readable / writeable by your user , Such as Find the Suitability:
$ find / (-Note -Prem - O + W, O + R) -and (-Note-Group & lt; GroupName & gt; -PRM -G + W, G + R) -and (-Note-user & lt; Username- gt; -marm- U + W, U + R) '
If you have to check more group then you can expand the word inside the second bracket:
$ Find / '(-Note -Prem-O + W, O + R) -and (-Note-Group & lt; GroupName; -Perm-G + W, G + R-Not-Group & lt; Group 2 & gt;) - and (- Username & gt; -perm -u + w, u + r) '
Comments
Post a Comment