unix command.. quick question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pornJester
    Confirmed User
    • Mar 2001
    • 6138

    #1

    unix command.. quick question

    ok, quick question... I'm trying to chmod a directory and all it's subdirectories to 777 but I want to leave all the files at 755. Will this command do it?

    find . -type d | chmod 755 directoryname

    directoryname being the one i'd like to start in.

    ??

    Sorry, my unix is pretty rusty and any help would be appreciated.


    FreshBucks | Webmaster Vault | GayAW
    Trusted Names in Adult.
    ICQ 9157.3698
  • CGI
    Confirmed User
    • Apr 2002
    • 139

    #2
    find /directory/start/path -type d -exec chmod 777 {} \;
    Komply - The 2257 record keeping & content management application (sneak preview)
    Manic Cash - Tight Niches, Solid Payouts...
    ICQ 346121285

    Comment

    • pornJester
      Confirmed User
      • Mar 2001
      • 6138

      #3
      Originally posted by CGI
      find /directory/start/path -type d -exec chmod 777 {} \;
      awesome, thanks


      FreshBucks | Webmaster Vault | GayAW
      Trusted Names in Adult.
      ICQ 9157.3698

      Comment

      • CGI
        Confirmed User
        • Apr 2002
        • 139

        #4
        No problem

        Just so you know, I actually went and tested that on both FreeBSD and Linux (the find command differs slightly between them) and it works just fine on both.
        Komply - The 2257 record keeping & content management application (sneak preview)
        Manic Cash - Tight Niches, Solid Payouts...
        ICQ 346121285

        Comment

        Working...