Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Chmod Files And Directories as 775 and 664

    I need to change folders to 775 and files to 664 recursively, but this bash does not has find command (?).

    How can I change them recursively? Thanks.

  2. #2

    chmod 777 /folder/folder/*
    the " * " means recursively...


  3. #3
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    No it does not.
    It means to chmod everything on the level of the folder.

    chmod -R will work recursively.

    However, find would be helpfull to have files 644 and dirs 755.
    How come, that there is none?
    You must always face the curtain with a bow.

  4. $spacer_open
  5. #4
    find /path/to/where/you/want -type d | xargs chmod 755
    find /path/to/where/you/want -type f | xargs chmod 664

    if your bash doesn't have find, install it.

    sh-4.1# rpm -qf `which find`
    Last edited by yukihisa; 02-11-2011 at 01:50 PM.

Posting Permissions

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