Server Guys, Setting File Permissions on a Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spudman
    Confirmed User
    • Aug 2002
    • 3198

    #1

    Server Guys, Setting File Permissions on a Server

    Hey,

    how hard is it to set mass file permissions on a server? I have 16 sites, all with the same software on and i need certain file permissions changed on all sites.

    e.g.
    I need the file "index.php" and the folder "temp" on all 16 sites set to permission 666

    how hard is that to do on mass as my current host is unable to do this?

    thanks
    Take it Easy !!!
  • CurrentlySober
    Too lazy to wipe my ass
    • Aug 2002
    • 38945

    #2
    Dead easy... Just guess...

    I guess?

    PS. What is a server?


    👁️ 👍️ 💩

    Comment

    • drmadcat
      Confirmed User
      • Jun 2011
      • 2024

      #3
      use file zilla very easy to do
      1. open file zilla
      2. file click site manager
      3. choose host from my sites
      4. click the directory i.e. i host with amerinoc so i click domains---example.com---public_html---right click index---then click file permission
      hope this helps
      asiamoviepass.com

      Comment

      • Spudman
        Confirmed User
        • Aug 2002
        • 3198

        #4
        Originally posted by drmadcat
        use file zilla very easy to do
        1. open file zilla
        2. file click site manager
        3. choose host from my sites
        4. click the directory i.e. i host with amerinoc so i click domains---example.com---public_html---right click index---then click file permission
        hope this helps
        that is for a single file correct? i am talking about ammending many files and folders in one go. there are too many files to change to do it manually.
        Take it Easy !!!

        Comment

        • jhmplondon
          Confirmed User
          • Aug 2011
          • 225

          #5
          Originally posted by Spudman
          that is for a single file correct? i am talking about ammending many files and folders in one go. there are too many files to change to do it manually.
          there's an option to set same permission for all subfolders and files
          Turn Wordpress into a Membership Site - $25 off

          Comment

          • drmadcat
            Confirmed User
            • Jun 2011
            • 2024

            #6
            Originally posted by Spudman
            that is for a single file correct? i am talking about ammending many files and folders in one go. there are too many files to change to do it manually.
            yep only 1 file at a time no idea how to change multiple
            asiamoviepass.com

            Comment

            • Babaganoosh
              ♥♥♥ Likes Hugs ♥♥♥
              • Nov 2001
              • 15841

              #7
              You could use a bash script to do that but honestly if you're doing one file and a directory (recursively?) I would just do it the old fashioned way.

              chmod 0666 index.php
              chmod 0666 temp -R (the -R is recursive)
              I like pie.

              Comment

              • woj
                <&(©¿©)&>
                • Jul 2002
                • 47882

                #8
                16 folders isn't THAT bad, would take whole 5 mins at most, quicker than making a post on gfy, heh....
                Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                Comment

                • Spudman
                  Confirmed User
                  • Aug 2002
                  • 3198

                  #9
                  Originally posted by woj
                  16 folders isn't THAT bad, would take whole 5 mins at most, quicker than making a post on gfy, heh....
                  re-read my post.

                  I have 16 Sites, each site has about 20 folders and 20 files that need their permissions changing.

                  i didn't want to do 640 manual file/folder changes so asked my host to do it on mass for me but they keep fucking up.
                  Take it Easy !!!

                  Comment

                  • woj
                    <&(©¿©)&>
                    • Jul 2002
                    • 47882

                    #10
                    Originally posted by Spudman
                    re-read my post.

                    I have 16 Sites, each site has about 20 folders and 20 files that need their permissions changing.

                    i didn't want to do 640 manual file/folder changes so asked my host to do it on mass for me but they keep fucking up.
                    oh, figured it's only 1 folder / 1 file per site... you are right, that's a huge pain to do manually...
                    if you have ssh access, I can write a quick script to do it for a few bucks if you want, icq: 33375924 or woj#at#wojfun#.#com to discuss details
                    Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                    Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                    Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                    Comment

                    • Babaganoosh
                      ♥♥♥ Likes Hugs ♥♥♥
                      • Nov 2001
                      • 15841

                      #11
                      Originally posted by Spudman
                      re-read my post.

                      I have 16 Sites, each site has about 20 folders and 20 files that need their permissions changing.

                      i didn't want to do 640 manual file/folder changes so asked my host to do it on mass for me but they keep fucking up.
                      You re-read your post. You never mentioned that. You need to write a bash script if it's too much to handle one by one.
                      I like pie.

                      Comment

                      • Spudman
                        Confirmed User
                        • Aug 2002
                        • 3198

                        #12
                        Originally posted by Babaganoosh
                        You re-read your post. You never mentioned that. You need to write a bash script if it's too much to handle one by one.
                        is that a fairly standard thing for a host to do?
                        my host has fucked it up 4 times and taking over 6 days and its still not done, i'm just wondering if my host is being shit or if my request is unreasonable.
                        Take it Easy !!!

                        Comment

                        • woj
                          <&(©¿©)&>
                          • Jul 2002
                          • 47882

                          #13
                          Originally posted by Spudman
                          is that a fairly standard thing for a host to do?
                          my host has fucked it up 4 times and taking over 6 days and its still not done, i'm just wondering if my host is being shit or if my request is unreasonable.
                          If you are paying decent $$ for a "managed" server and have a good relationship with the host, then they should hook you up... but stuff like this is probably beyond the scope of what the host is responsible for...
                          Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                          Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                          Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                          Comment

                          • Babaganoosh
                            ♥♥♥ Likes Hugs ♥♥♥
                            • Nov 2001
                            • 15841

                            #14
                            Originally posted by Spudman
                            is that a fairly standard thing for a host to do?
                            my host has fucked it up 4 times and taking over 6 days and its still not done, i'm just wondering if my host is being shit or if my request is unreasonable.
                            I can't imagine a host doing that for you. That really falls under the normal, day-to-day operation of a site category. It's not really their job.

                            Honestly if you aren't willing to look up how to write a little bash script, you should probably pay someone to do it for you. I know woj is more than capable. He's a sharp cookie.
                            I like pie.

                            Comment

                            • Spudman
                              Confirmed User
                              • Aug 2002
                              • 3198

                              #15
                              ok cool,

                              thanks guys
                              Take it Easy !!!

                              Comment

                              • facialfreak
                                Confirmed User
                                • Feb 2005
                                • 3018

                                #16
                                Originally posted by Spudman
                                is that a fairly standard thing for a host to do?
                                my host has fucked it up 4 times and taking over 6 days and its still not done, i'm just wondering if my host is being shit or if my request is unreasonable.
                                that would depend if your service is self-managed or fully-managed?

                                Managed Shared Hosting starting at $4.99/mo
                                Managed VPS starting at $29.99/mo


                                Comment

                                • alias
                                  aliasx
                                  • Apr 2001
                                  • 19010

                                  #17
                                  Originally posted by Babaganoosh
                                  You could use a bash script to do that but honestly if you're doing one file and a directory (recursively?) I would just do it the old fashioned way.

                                  chmod 0666 index.php
                                  chmod 0666 temp -R (the -R is recursive)
                                  https://porncorporation.com

                                  Comment

                                  • My Pimp
                                    Confirmed User
                                    • May 2003
                                    • 1201

                                    #18
                                    Is it not possible to select several files at once in the ftp program and then change the permission?

                                    Comment

                                    • raymor
                                      Confirmed User
                                      • Oct 2002
                                      • 3745

                                      #19
                                      Send us the list. It's pretty quick if you know all the tricks. Do NOT use chmod -R unless you are sure that you fully understand all of the implications.
                                      For historical display only. This information is not current:
                                      support&#64;bettercgi.com ICQ 7208627
                                      Strongbox - The next generation in site security
                                      Throttlebox - The next generation in bandwidth control
                                      Clonebox - Backup and disaster recovery on steroids

                                      Comment

                                      • Klen
                                        • Aug 2006
                                        • 32235

                                        #20
                                        Only way to do this is to simply add chmod 777 file entry for each file on batch script as Baba posted example.
                                        So you would login to ssh,open text editor(nano should be best to use,open it by typing nano batchscriptname),
                                        add for example:
                                        chmod 777 /home/public_html/iliketurtles/index.php
                                        chmod 777 /home/public_html/barbecueisgood/index.php
                                        and add same for each folder and file which you need to apply chmod. Then you save file and type ./batchscriptname to start it.
                                        If you have common pattern,for example you want to do that on all files with extension php or on every file called index,then you could use find command to apply chmod to that pattern.

                                        Comment

                                        • ladida
                                          Confirmed User
                                          • Nov 2005
                                          • 2179

                                          #21
                                          find + exec, google it.
                                          agentGFY *at* gmail.com

                                          Comment

                                          • split_joel
                                            Confirmed User
                                            • Jan 2005
                                            • 2270

                                            #22
                                            Regarding a host support. If someone is managed and has not agreed to a control panel host should do it no questions asked. Hell even if there is a cp if customer asks you do it. Unmanaged do it but charge. I don't know why someone thinks its beyond a managed server host to do this. Why not help your clients and not risk them messing up and also if they have more time to focus on work and they grow your pocket does to and they stick by you.

                                            Regarding your post if you can wait till tonight I will help u no charge and im not trying to sell u anything for the haters I work foe myself now.
                                            E-mail marketing - Automation Scripting - IP Space
                                            AIM: splitjoelp ICQ: 254759453 skype - splitjoelp 702-941-6465

                                            Comment

                                            • V_RocKs
                                              Damn Right I Kiss Ass!
                                              • Nov 2003
                                              • 32449

                                              #23
                                              Lots of ways to do it.... get this listed with other commands like find and then > chmod 666
                                              or |xargs chmod 666

                                              Comment

                                              • Babaganoosh
                                                ♥♥♥ Likes Hugs ♥♥♥
                                                • Nov 2001
                                                • 15841

                                                #24
                                                Originally posted by split_joel
                                                Regarding a host support. If someone is managed and has not agreed to a control panel host should do it no questions asked. Hell even if there is a cp if customer asks you do it. Unmanaged do it but charge. I don't know why someone thinks its beyond a managed server host to do this. Why not help your clients and not risk them messing up and also if they have more time to focus on work and they grow your pocket does to and they stick by you.

                                                Regarding your post if you can wait till tonight I will help u no charge and im not trying to sell u anything for the haters I work foe myself now.
                                                Back in the days before hosts would suck off a customer just to get his business, customers were expected to possess a certain level of knowledge and competence. How long will it be before hosts are willing to build a site and manage it for their customers too?

                                                When I started in this business, hosts wouldn't do most of what customers expect these days. Script installations? Nope. Migrating sites? No way. Chmod some files for you? Hah!
                                                I like pie.

                                                Comment

                                                • Wolfy
                                                  Confirmed User
                                                  • Dec 2003
                                                  • 3574

                                                  #25
                                                  Pay woj.

                                                  /end thread.

                                                  Comment

                                                  • Klen
                                                    • Aug 2006
                                                    • 32235

                                                    #26
                                                    Originally posted by Babaganoosh
                                                    Back in the days before hosts would suck off a customer just to get his business, customers were expected to possess a certain level of knowledge and competence. How long will it be before hosts are willing to build a site and manage it for their customers too?

                                                    When I started in this business, hosts wouldn't do most of what customers expect these days. Script installations? Nope. Migrating sites? No way. Chmod some files for you? Hah!
                                                    Actually i offered that few times,but nobody seems cared :D

                                                    Comment

                                                    • ThunderBalls
                                                      So Fucking Banned
                                                      • Oct 2002
                                                      • 2926

                                                      #27
                                                      Originally posted by Babaganoosh
                                                      Back in the days before hosts would suck off a customer just to get his business, customers were expected to possess a certain level of knowledge and competence. How long will it be before hosts are willing to build a site and manage it for their customers too?

                                                      When I started in this business, hosts wouldn't do most of what customers expect these days. Script installations? Nope. Migrating sites? No way. Chmod some files for you? Hah!


                                                      No doubt. I was just thinking last night how much fun it used to be before cpanel getting a new dedicated server and spending days manually installing and configuring everything from sendmail to apache with zero help from the host.

                                                      Comment

                                                      Working...