Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: help in chmod

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    help in chmod

    Hi! I have been trying to give file permissions to all the files in a folder and subfolder (ex, to the whole /home/ directory). I have been trying to use chmod 777 /home/*.* or /home/* but it just gives permissions to the files in that directory and not in the subdirectories.
    The only solution was to chmod 777 /home/*/*/*... but this doens't seem to be very well :/

    Thanks in advance

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Firstly, look through the man page for chmod for more options, i.e. do a man chmod

    Now, for changing permissions for directories, you must use the "recursive flag" to change permissions for all folders and files in whatever folder, i.e. do this:
    chmod 777 -R /home
    Life is complex, it has a real part and an imaginary part.

Posting Permissions

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