![]() |
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 |
Dead easy... Just guess...
I guess? PS. What is a server? |
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 |
Quote:
|
Quote:
|
Quote:
|
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) |
16 folders isn't THAT bad, would take whole 5 mins at most, quicker than making a post on gfy, heh....
|
Quote:
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. |
Quote:
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 |
Quote:
|
Quote:
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. |
Quote:
|
Quote:
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. |
ok cool,
thanks guys |
Quote:
|
Quote:
|
Is it not possible to select several files at once in the ftp program and then change the permission?
|
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.
|
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. |
find + exec, google it.
|
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. |
Lots of ways to do it.... get this listed with other commands like find and then > chmod 666
or |xargs chmod 666 |
Quote:
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! |
Pay woj.
/end thread. |
Quote:
|
Quote:
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