Announcement

Collapse
No announcement yet.

Script or utility to list all files on the system that a certain user can read/modify

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script or utility to list all files on the system that a certain user can read/modify

    Does anyone know of a utility or script that can scan a whole filesystem and list files that are writable by a certain user? Same for all files readable by a certain user.

    I feel like this would be a useful tool for doing quick security tests to make sure no file permissions have been set too loose.
    samhobbs.co.uk

    #2
    with findutils 4.3+ you can use:
    Code:
    find [path] [-readable|-writable]
    for example, "find / -readable".

    to search for another (not active) user:
    sudo -u [userrname] find / -writable

    Comment


      #3
      Thanks, that's perfect
      samhobbs.co.uk

      Comment

      Working...
      X