Change permissions for directories only

From: gf (gfraley5_at_earthlink.net)
Date: 09/12/04

  • Next message: mjt: "Re: Change permissions for directories only"
    Date: Sun, 12 Sep 2004 18:13:44 GMT
    
    

    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.


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

    Relevant Pages

    • Re: Setting permissions, changing the owner...
      ... >I want to know is there a way to set permissions for all files and ... >to all files and folders" option when you set options of one folder ... You are looking commands like chmod, chown. ...
      (Debian-User)
    • Re: mass chmod chown...
      ... :: chmod/chown files? ... i want to be able to like chmod all the files and folders say ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)
    • Re: [PHP] CHMOD...
      ... > but have it set all files, folders etc to the CHMOD setting I want? ... > The information contained in this e-mail message is intended only for ... > If the reader of this message is not the intended recipient or an agent ...
      (php.general)
    • CHMOD...
      ... Is there anyway to use CHMOD: ... but have it set all files, folders etc to the CHMOD setting I want? ... The information contained in this e-mail message is intended only for ... If the reader of this message is not the intended recipient or an agent ...
      (php.general)
    • Re: mass chmod chown...
      ... On Sat, 2004-07-17 at 08:28, Alexander Dalloz wrote: ... >> want to be able to like chmod all the files and folders say in a certain ... chmod command. ...
      (Fedora)