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

Is there a way to CHMOD files before uploading

Discussion in 'White Hat SEO' started by sec-dee, Feb 12, 2009.

  1. sec-dee

    sec-dee Registered Member

    Joined:
    Dec 5, 2006
    Messages:
    61
    Likes Received:
    29
    Is there a way to set file permissions before uploading to server?

    Thanks.
     
  2. justthinking

    justthinking BANNED BANNED

    Joined:
    Aug 13, 2008
    Messages:
    475
    Likes Received:
    463
    What FTP client are you using? Filezilla? After you upload your files to the server, right click on the file you want to CHMOD and chose file attitributes. Change it to whatever you want.
     
  3. Gordon Shumway

    Gordon Shumway Newbie

    Joined:
    Jan 20, 2009
    Messages:
    20
    Likes Received:
    10
    yeah do it like justthinking says
    you cant chmod a file outside your server, is like if you were trying to make a cake without adding the dough first...
     
  4. genie1

    genie1 Junior Member

    Joined:
    May 30, 2008
    Messages:
    151
    Likes Received:
    50
    Home Page:
    you can tarball the files up with the correct permissions and then, gzip it, upload the tar.gz file and then extract. It will preserve the permissions

    tar -cvf foo.tar filename1 filename2.....etc

    gzip -9 foo.tar

    upload

    tar -xzvf foo.tar.gz

    done
     
  5. Gordon Shumway

    Gordon Shumway Newbie

    Joined:
    Jan 20, 2009
    Messages:
    20
    Likes Received:
    10
    thanks for the information I wasnt aware of that.
     
  6. shudogg

    shudogg Regular Member

    Joined:
    Sep 23, 2008
    Messages:
    412
    Likes Received:
    153
    Occupation:
    Internet Marketing
    Location:
    Indiana
    Home Page:
    its not too hard to chmod on the server, the tarbell method is just an extra un-necessary step. if your going to do that, you might as well just right click, chmod on the server.

    The tarbell method would work if you have to upload that same set of files to different servers, ect. So if its something to do once or twice just chmod on the server.. but say you had a script that had to have permissions changed. and you offered a service where you would upload and setup that script. Then the tarbell method would come in handy. So if your not doing mass installs/uploads, then just chmod by hand. you cant be that lazy