I would like to find files only by a certain user's permission. For example, if I want to find a file that I have full permission.
I may do something like:
find . -user $(whoami) -perm
But what should I put after -perm
if I want to ignore the permission of root and other users.
for the specified user, it returns files with the following privileges: rwx,
for the specified user, it returns files with the following privileges: rwx, rw,
for the specified user, it returns files with the following privileges: rwx, rx,
for the specified user, it returns files with the following privileges: rwx, rw, rx, r,
for the specified user, it returns files with the following privileges: rwx, wx,
for the specified user, it returns files with the following privileges: rwx, rw, wx, w,
for the specified user, it returns files with the following privileges: rwx, rx, wx, x,
for the specified user, it returns files with the following privileges: rwx, rw, rx, wx, r, w, x, 0,
for the specified user, it returns files with the following privileges: rwx, rw, rx, wx, r, w, x,
for the specified user, it returns files with the following privileges: rwx, rw, rx, wx, r, w,
for the specified user, it returns files with the following privileges: rwx, rw, rx, wx, r, x,
for the specified user, it returns files with the following privileges: rwx, rw, rx, r,
for the specified user, it returns files with the following privileges: rwx, rw, rx, wx, w, x,
for the specified user, it returns files with the following privileges: rwx, rw, wx, w,
for the specified user, it returns files with the following privileges: rwx, rx, wx, x,
for the specified user, it returns files with the following privileges: rwx, rx, rw, wx, r, w, x, 0.
Examples have been tested.
Source of citations.
Start with:
This means: look for files starting in /path/to/files, owned by user1, where the permissions for group and other can be anything (- in front of permission string) and the users permissions are only: rwx
Also, try some reading. This has great examples: Find tutorial