Find the answer to your Linux question:
Results 1 to 4 of 4
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....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! kwanbis's Avatar
    Join Date
    Jan 2005
    Posts
    15

    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
    Just Joined! supermanisdeady's Avatar
    Join Date
    Dec 2010
    Posts
    33

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

    CMIIW

  3. #3
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    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. #4
    Just Joined!
    Join Date
    Jun 2010
    Posts
    8
    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`
    findutils-4.5.9-2.fc14.i686
    sh-4.1#
    Last edited by yukihisa; 02-11-2011 at 12: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
  •