hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Software and Control Panels Tutorials : How to fix cPanel Transfer Script Problem with Ownership
Reply

Forum Jump

How to fix cPanel Transfer Script Problem with Ownership

Reply Post New Thread In Hosting Software and Control Panels Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2004, 09:11 AM
beachtrader beachtrader is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 387

How to fix cPanel Transfer Script Problem with Ownership


When you use cPanel's automatic transfer script is changes the group of the the "public_html" directory to the user owning the site. It should correctly be assigned to the "nobody" group. If it is not assigned the to "nobody" group the site will be unavailable to view even though the files are present. To fix the problem it is very simple to run the following at the command line inside the account's folder in the /home directory:

chgrp nobody public_html

This will transfer the ownership of the group to the web server and will fix the problem.

However, if you have transferred multiple sites it can quickly become cumbesome to do so. So put this script in the /home directory and run. It will change all public_html directories to the nobody group and mass fix the problem.

Code:
#!/usr/bin/perl
$mode = "nobody";
@dir = <*>;
foreach $file (@dir) {
`chgrp $mode $file/public_html`;
}
Be sure to chmod the script to 755 before running. Enjoy.


Last edited by beachtrader; 02-04-2004 at 09:16 AM.


Sponsored Links
  #2  
Old 02-18-2004, 02:04 PM
Akash Akash is offline
Web Hosting Master
 
Join Date: Jan 2001
Location: Illinois, USA
Posts: 7,147
Thanks - do you know if this "bug" is on all versions of cPanel - or has it been fixed?

  #3  
Old 02-18-2004, 08:21 PM
beachtrader beachtrader is offline
Aspiring Evangelist
 
Join Date: Sep 2002
Posts: 387
Anything less than 8.8 stable does not work and needs to be changed. I ran one move with 8.8 stable and it did get the permissions/ownership correct so hopefully it won't be a problem for the future.

__________________
Richard
Multiple Domain Hosting | See our Ad in PC Magazine
Windows Reseller Hosting @ www.e3servers.com

Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
cPanel Addresses User Concerns of Transfer and Backup Restore System Security Web Hosting News 2013-05-24 10:13:44
Hosting Control Panel cPanel & WHM 11.34 Release Hits Stable Tier Web Hosting News 2012-11-12 17:04:57
cPanel Releases cPanel, WHM 11.34 with New User Interface Web Hosting News 2012-10-16 13:09:49
cPanel Conference 2012: Branding and How to Do it Better with Felipe Gasper Web Hosting News 2012-10-09 18:00:02
Video: cPanel and Attracta Talk About Integrating SEO Tools into the Hosting Control Panel Whir Tv 2013-10-05 05:55:56


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?