List all directories/files I own within the Inode

231 views Asked by At

I am currently in a class and we are discussing the inode and permissions and brought up a hypothetical situation where you could have ownership of a file without having access to it, and we are trying to discover a way to find such files. Scrubbing the inode for everything you own would be one way to list out all such elements but the best I was able to come up with was using the command 'ls -laFG' which only looks in the home directory which is not the answer we are looking for. Does anyone know how to do that, or accomplish something similar?

1

There are 1 answers

4
Junior Dussouillez On

"have ownership of a file without having access to it".

Do you mean that the file permissions are 000 (can't read, can't write, can't exec for current user, current user's group and the others) ?