1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

permissions

Discussion in 'HTML, Graphics & Programming' started by Jo2009, 6 Jun 2010.

  1. Jo2009

    PermaBanned

    Joined: 9 Dec 2009

    Posts: 188

    I was just wondering if some one could do a script for me so it sets every file, subfolders to 777?

    Thanks
    Jo
     
  2. Beerbaron

    Soldato

    Joined: 28 Feb 2006

    Posts: 5,984

    Location: Beds

    why the permission change?
    What os?
     
  3. Jo2009

    PermaBanned

    Joined: 9 Dec 2009

    Posts: 188

    I'm on mac.
    I'm trying to install PrestaShop but have to have the folders set at 777, so to do it all myself is going to take a long time as there lots of stuff to change.
     
  4. Beerbaron

    Soldato

    Joined: 28 Feb 2006

    Posts: 5,984

    Location: Beds

    sorry cant help, i dont go near macs
     
  5. Jo2009

    PermaBanned

    Joined: 9 Dec 2009

    Posts: 188

    Okey.
    Thanks any way.
     
  6. tntcoder

    Mobster

    Joined: 7 Apr 2004

    Posts: 4,213

    Can't you just run "chmod -R 777 parentDir"

    That will recursively mod everything inside that directory to 777.

    Or if you only want directories and not files:
    find . -type d -exec chmod 755 {} \; That will mod every directory recursively from the directory you execute it in.
     
    Last edited: 6 Jun 2010
  7. daz

    Capodecina

    Joined: 18 Oct 2002

    Posts: 24,019

    Location: Bucks

    If you're on a mac, just open a terminal and run CHMOD recursively on the directory as described above :)
     
  8. fez

    Capodecina

    Joined: 22 Aug 2008

    Posts: 16,082

    Location: Tunbridge Wells

    Prestashop you say, interesting piece of software. Be careful if you need to buy any module for it. Especially if its a media module.
     
  9. Jo2009

    PermaBanned

    Joined: 9 Dec 2009

    Posts: 188

    Will do, but I don't think ill be useing this as it don't seem like it wants to work.

    I've tried a lot of diffrent Free shopping carts now and they all have not worked. So I think I'm just going to have to buy a £100 one.

    Jo
     
  10. Jo2009

    PermaBanned

    Joined: 9 Dec 2009

    Posts: 188

    I'm confused on how to do that code, and I'm not sure if it's what I need. I need every single file/folder to have 777.

    Command: SITE CHMOD chmod -R 777 prestashop prestashop
    Response: 550 Could not change perms on -R 777 prestashop prestashop: No such file or directory
     
  11. tntcoder

    Mobster

    Joined: 7 Apr 2004

    Posts: 4,213

    if prestashop is your top level directory, you're running the commmand twice by the looks of it.

    CHMOD chmod -R 777 prestashop prestashop

    sould be

    chmod -R 777 prestashop

    and that will set every directory and every file to 777 inside prestashop.
     
  12. Bes

    Soldato

    Joined: 18 Oct 2002

    Posts: 7,320

    Location: Melbourne

    What do you mean it doesn't work? I think you are doing something wrong. Are you using MAMP?
     
  13. tntcoder

    Mobster

    Joined: 7 Apr 2004

    Posts: 4,213

    Good point, also if this is shopping cart software then it is certainly not wise to 777 everything :p
     
  14. Jo2009

    PermaBanned

    Joined: 9 Dec 2009

    Posts: 188

    Thanks for help all. I have now done it right and it set them all to 777.
    @tntcoder, There's only about 3 that don't need to be set to 777 and all the others do. So doing it this way makes it more quick then the ones I don't need as 777 I can change. (y)