Re: Change permissions for directories only

From: James McIninch (james.mcininch.nospam_at_comcast.net)
Date: 09/13/04

  • Next message: Stu: "Re: Change permissions for directories only"
    Date: Mon, 13 Sep 2004 04:45:50 GMT
    
    

    <posted & mailed>

    gf wrote:

    > Can chmod be used for changing permissions for directories only and/or
    > files
    > only? In other words in a directory/file structure like
    >
    > folder
    > --- subfolder1
    > ------ file1
    > ------ file2
    > --------- subfolder2
    > ------------ file3
    > --- subfolder2
    > ------ file4
    >
    > (etc.)
    >
    > I want all files to be 644 and all folders to be 755. It seems that it is
    > an all or nothing exercise. chmod -R * and then go back and do the
    > folders
    > individually? Hopefully there's an easier way. Thanks.

    find folder -type d | xargs chmod 755
    find folder -type f | xargs chmod 644

    -- 
    remove .nospam from e-mail address to reply
    

  • Next message: Stu: "Re: Change permissions for directories only"

    Relevant Pages

    • Re: useBeans servlets fail to find class name
      ... Springy wrote: ... folder in the same location as the three files created called classes. ... In there I created another folder called hall and in that placed the ... May be your directory/file structure is wrong. ...
      (comp.lang.java.beans)
    • Re: How can I get all folders to show date modified?
      ... I can't understand how it can have an invalid path since I just put in the command to copy and they are there. ... I check and in my J:\ Cookies folder I have a file backup.bat the first one I tried that didn't work. ... @echo off ... remove "nospam" in order to email me. ...
      (microsoft.public.windowsxp.general)
    • Re: How can I get all folders to show date modified?
      ... I check and in my J:\ Cookies folder I have a file backup.bat the first one I tried that didn't work. ... @echo off ... The copy command will copy things from the SOURCE to the DESTINATION: ... remove "nospam" in order to email me. ...
      (microsoft.public.windowsxp.general)
    • Re: How can I get all folders to show date modified?
      ... @echo off ... Is it just looking at the destination folder to know what to copy? ... The copy command will copy things from the SOURCE to the DESTINATION: ... remove "nospam" in order to email me. ...
      (microsoft.public.windowsxp.general)
    • Re: How can I get all folders to show date modified?
      ... The error didn't show not even a fraction of what I have in the backup folder. ... @echo off ... remove "nospam" in order to email me. ...
      (microsoft.public.windowsxp.general)