Find the answer to your Linux question:
Results 1 to 4 of 4
I managed to screw up my file permissions in /home. I need to set all files to 600, and apparently directories need execute permissions to open so I need all ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    22

    [SOLVED] Screwed up file permissions

    I managed to screw up my file permissions in /home. I need to set all files to 600, and apparently directories need execute permissions to open so I need all directories and subdirectories in /home set to 700.

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    452
    what is your question?
    the sun is new every day (heraclitus)

  3. #3
    Just Joined!
    Join Date
    Apr 2007
    Posts
    22
    Currently I have everything at 700, but I want to remove the executable bit from everything that isn't a directory.

  4. #4
    Just Joined!
    Join Date
    Aug 2009
    Location
    Zeewolde, Flevoland NL
    Posts
    1
    What you can do is the following:

    Go to the /home directory and type the following as root:

    Code:
    find $DIRNAME -type f -exec chmod 600 {} \;
    Now every directory (wich is still chmodded 700) will be found and entered executing a chmod 600 to the files in it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •