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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-28-2011, 03:08 AM   #1
Spudman
Confirmed User
 
Spudman's Avatar
 
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 !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 03:09 AM   #2
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,509
Dead easy... Just guess...

I guess?

PS. What is a server?
__________________


👁️ 👍️ 💩
CurrentlySober is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 03:24 AM   #3
drmadcat
Confirmed User
 
drmadcat's Avatar
 
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
drmadcat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 03:29 AM   #4
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
Quote:
Originally Posted by drmadcat View Post
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 !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 03:31 AM   #5
jhmplondon
Confirmed User
 
Industry Role:
Join Date: Aug 2011
Location: London, UK
Posts: 225
Quote:
Originally Posted by Spudman View Post
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
jhmplondon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 03:31 AM   #6
drmadcat
Confirmed User
 
drmadcat's Avatar
 
Industry Role:
Join Date: Jun 2011
Location: in the back room wanking
Posts: 2,024
Quote:
Originally Posted by Spudman View Post
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
drmadcat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 05:39 AM   #7
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
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)
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:06 AM   #8
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:20 AM   #9
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
Quote:
Originally Posted by woj View Post
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 !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:25 AM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by Spudman View Post
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:28 AM   #11
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Quote:
Originally Posted by Spudman View Post
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.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:34 AM   #12
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
Quote:
Originally Posted by Babaganoosh View Post
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 !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:46 AM   #13
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by Spudman View Post
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:49 AM   #14
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Quote:
Originally Posted by Spudman View Post
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.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:59 AM   #15
Spudman
Confirmed User
 
Spudman's Avatar
 
Join Date: Aug 2002
Location: UK
Posts: 3,198
ok cool,

thanks guys
__________________
Take it Easy !!!
Spudman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 08:12 AM   #16
facialfreak
Confirmed User
 
facialfreak's Avatar
 
Join Date: Feb 2005
Location: Montreal
Posts: 3,018
Quote:
Originally Posted by Spudman View Post
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


facialfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 10:08 AM   #17
alias
aliasx
 
alias's Avatar
 
Join Date: Apr 2001
Posts: 19,010
Quote:
Originally Posted by Babaganoosh View Post
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
alias is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 10:09 AM   #18
My Pimp
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?
My Pimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 10:41 AM   #19
raymor
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&#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
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 11:19 AM   #20
Klen
 
Klen's Avatar
 
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.
Klen is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 01:15 PM   #21
ladida
Confirmed User
 
ladida's Avatar
 
Join Date: Nov 2005
Posts: 2,167
find + exec, google it.
__________________
agentGFY *at* gmail.com
ladida is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 04:29 PM   #22
split_joel
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
split_joel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 04:48 PM   #23
V_RocKs
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
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 06:25 PM   #24
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Quote:
Originally Posted by split_joel View Post
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!
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-28-2011, 07:04 PM   #25
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Pay woj.

/end thread.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-29-2011, 02:08 PM   #26
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by Babaganoosh View Post
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
Klen is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-29-2011, 02:39 PM   #27
ThunderBalls
So Fucking Banned
 
Industry Role:
Join Date: Oct 2002
Location: Mesosphere
Posts: 2,926
Quote:
Originally Posted by Babaganoosh View Post
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.
ThunderBalls is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.