![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
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 !!! ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,511
|
Dead easy... Just guess...
I guess? PS. What is a server? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jun 2011
Location: in the back room wanking
Posts: 2,024
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
Quote:
__________________
Take it Easy !!! ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2011
Location: London, UK
Posts: 225
|
there's an option to set same permission for all subfolders and files
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Jun 2011
Location: in the back room wanking
Posts: 2,024
|
yep only 1 file at a time no idea how to change multiple
__________________
asiamoviepass.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
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) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
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.
__________________
Take it Easy !!! ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
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
__________________
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
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.
__________________
Take it Easy !!! ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
Quote:
![]()
__________________
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Aug 2002
Location: UK
Posts: 3,198
|
ok cool,
thanks guys
__________________
Take it Easy !!! ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Feb 2005
Location: Montreal
Posts: 3,018
|
that would depend if your service is self-managed or fully-managed?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
aliasx
Join Date: Apr 2001
Posts: 19,010
|
Quote:
![]()
__________________
https://porncorporation.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: May 2003
Posts: 1,201
|
Is it not possible to select several files at once in the ftp program and then change the permission?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
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@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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Nov 2005
Posts: 2,167
|
find + exec, google it.
__________________
agentGFY *at* gmail.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
Confirmed User
Join Date: Jan 2005
Posts: 2,270
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,391
|
Lots of ways to do it.... get this listed with other commands like find and then > chmod 666
or |xargs chmod 666 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
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! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
|
Pay woj.
/end thread. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 | |
So Fucking Banned
Industry Role:
Join Date: Oct 2002
Location: Mesosphere
Posts: 2,926
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |