GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Server Guys, Setting File Permissions on a Server (https://gfy.com/showthread.php?t=1035882)

Spudman 08-28-2011 03:08 AM

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

CurrentlySober 08-28-2011 03:09 AM

Dead easy... Just guess...

I guess?

PS. What is a server?

drmadcat 08-28-2011 03:24 AM

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

Spudman 08-28-2011 03:29 AM

Quote:

Originally Posted by drmadcat (Post 18384826)
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.

jhmplondon 08-28-2011 03:31 AM

Quote:

Originally Posted by Spudman (Post 18384834)
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

drmadcat 08-28-2011 03:31 AM

Quote:

Originally Posted by Spudman (Post 18384834)
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

Babaganoosh 08-28-2011 05:39 AM

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)

woj 08-28-2011 07:06 AM

16 folders isn't THAT bad, would take whole 5 mins at most, quicker than making a post on gfy, heh....

Spudman 08-28-2011 07:20 AM

Quote:

Originally Posted by woj (Post 18385011)
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.

woj 08-28-2011 07:25 AM

Quote:

Originally Posted by Spudman (Post 18385023)
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

Babaganoosh 08-28-2011 07:28 AM

Quote:

Originally Posted by Spudman (Post 18385023)
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.

Spudman 08-28-2011 07:34 AM

Quote:

Originally Posted by Babaganoosh (Post 18385029)
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.

woj 08-28-2011 07:46 AM

Quote:

Originally Posted by Spudman (Post 18385034)
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... :2 cents:

Babaganoosh 08-28-2011 07:49 AM

Quote:

Originally Posted by Spudman (Post 18385034)
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.

Spudman 08-28-2011 07:59 AM

ok cool,

thanks guys

facialfreak 08-28-2011 08:12 AM

Quote:

Originally Posted by Spudman (Post 18385034)
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?

alias 08-28-2011 10:08 AM

Quote:

Originally Posted by Babaganoosh (Post 18384942)
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)

:2 cents:

My Pimp 08-28-2011 10:09 AM

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

raymor 08-28-2011 10:41 AM

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.

Klen 08-28-2011 11:19 AM

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.

ladida 08-28-2011 01:15 PM

find + exec, google it.

split_joel 08-28-2011 04:29 PM

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.

V_RocKs 08-28-2011 04:48 PM

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

Babaganoosh 08-28-2011 06:25 PM

Quote:

Originally Posted by split_joel (Post 18385956)
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!

Wolfy 08-28-2011 07:04 PM

Pay woj.

/end thread.

Klen 08-29-2011 02:08 PM

Quote:

Originally Posted by Babaganoosh (Post 18386148)
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

ThunderBalls 08-29-2011 02:39 PM

Quote:

Originally Posted by Babaganoosh (Post 18386148)
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.


All times are GMT -7. The time now is 05:44 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc