The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Find files owned by 'nobody'

Discussion in 'General Discussion' started by compunet2, Oct 18, 2006.

  1. compunet2

    compunet2 Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    310
    Likes Received:
    0
    Trophy Points:
    16
    I have a folder, /home/xxx/public_html, and I want to find all files in that folder, and its subfolders that are owned by 'nobody'. How can I do that? If thats not possible, how can I have it list the contents of that folder and its subfolders to a file for me to lookat?
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Easy enough ....
    Code:
    cd /home
    
    find ./*/public_html -user 'nobody'
    You can replace the "*" with a login name if you only want the files owned
    by nobody for a specific account listed.
     
    #2 Spiral, Oct 18, 2006
    Last edited: Oct 18, 2006
Loading...

Share This Page