Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 Customer Forums > Reseller Hosting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2007, 04:43 PM
jfox jfox is offline
Newbie
 
Join Date: May 2007
Posts: 3
Default Files created with owner, 'nobody'. Cannot Edit.

I have installed the Joomla CMS. I installed it by hand, not with Fantastico, because that's the way I prefer to do it. When I uploaded a template I found the permissions for the template directory and all files and subdirectories set to nobody:nobody. This is caused because Apache is run under the 'nobody' account. For security reasons this is a good idea.

Unfortunately I cannot edit the template files locally on the server. I cannot copy them to my local machine, edit them, and then upload the updated files.
I cannot change the ownership or permissions on these files.
I cannot delete these files.
The only way to remove them is to uninstall the template.

I have traded quite a few emails with support and so far they have not been able to offer a solution.

I do quite a bit of custom development with Joomla templates and components. Not being able to fully control all of the files under my account is a major problem for me.

How have other HostNine customers dealt with this problem?
Reply With Quote
  #2  
Old 05-13-2007, 05:47 PM
Mediapixel Mediapixel is offline
Junior Guru Wannabe
 
Join Date: May 2007
Posts: 45
Default

have you tried logging into the file manager via cpanel and altering permissions instead of on the ftp client? you can also edit files that way too
Reply With Quote
  #3  
Old 05-13-2007, 08:58 PM
jfox jfox is offline
Newbie
 
Join Date: May 2007
Posts: 3
Default

Yes, I have tried via FTP, SSH, and the web-based file manager. A support tech suggested Joomla explorer. None of these methods allow me to change file ownership from 'nobody' to my account.
Reply With Quote
  #4  
Old 05-14-2007, 04:57 AM
H9Ben
Guest
 
Posts: n/a
Default

Unfortunately we do have to change that manually but there is one option. We have a cron job setup to run every hour on the servers that fixes the permissions on a list of domains for CMS software. If you want us to add your account to that list simply submit a support ticket and we'll get that completed for you.
Reply With Quote
  #5  
Old 05-16-2007, 05:36 PM
Nnyan Nnyan is offline
Newbie
 
Join Date: Apr 2007
Posts: 11
Default

Ran into this problem on my old host and one of the php experts came up with a fix. I won't post his script unless someone requests it.

PHP scripts here run as the apache user ("nobody" in this case) not as your user account. This is because PHP is run in mod_php mode. This means that when you upload a file through HTTP (ie through a web form), or your web program creates a file on the server that file will be owned by the user called "nobody". This can create problems when you want to delete, rename, copy, move or edit the file later through FTP, SSH or SFTP because you are not the user "nobody" and thus probably don't have the correct permissions.

Once reclaimed, you probably want to stop the problem happening again, to do that I recommend running PHP in CGI Mode. Simply select the Install CGI Mode PHP option from the menu after reclaiming the nobody files.

James Sleeman
Reply With Quote
  #6  
Old 05-16-2007, 06:13 PM
jfox jfox is offline
Newbie
 
Join Date: May 2007
Posts: 3
Default

Please post that script!
Reply With Quote
  #7  
Old 05-17-2007, 01:48 AM
colt45 colt45 is offline
Junior Guru
 
Join Date: May 2007
Location: Haleiwa, Hawaii
Posts: 213
Default

Quote:
Originally Posted by Nnyan View Post
Simply select the Install CGI Mode PHP option from the menu after reclaiming the nobody files.
James Sleeman
Just where exactly is this "option from the menu" located? I don't see it anywhere in cPanel or WHM.
Reply With Quote
  #8  
Old 05-20-2007, 01:02 PM
Jordan Jordan is offline
New Member
 
Join Date: May 2007
Posts: 1
Smile Cumbersome Solution Works

If you have a totally non-responsive ISP (like the one I have, called CertaHost; avoid at all costs) then you can still solve this problem, but it's cumbersome:

Even though you can't overwrite any of the files that 'nobody' owns, or change write permissions for the directory that 'nobody' owns, you CAN rename them (for example with Joomla Explorer). So:

First download them.

Then rename /dir-name/ on the host to /DELETE-THIS-IF-YOU-CAN-dir-name/.

Then make a new /dir-name/ that you ARE the owner of, and upload your files to it.

If you have many large directory structures to do, this can be cumbersome; and it does waste storage space on the server, since all the useless files remain; but it does work.

If you just have one file to replace, rename the one on the host, and then upload your own as the original name.

Good luck.
Reply With Quote
  #9  
Old 05-25-2007, 04:52 PM
Nnyan Nnyan is offline
Newbie
 
Join Date: Apr 2007
Posts: 11
Default

Sorry for the delay guys I've been really busy with the new house. Anyway here is the script.

http://www.mediafire.com/?6bc2yinnhfe

Make sure you review this script before you run it, I use it all the time with no problems but you should always review and understand any script you will run on your environment. Anyway use at your own risk.

You'll need to CHMOD the script to 755 in order for it to run properly. Props to Gogohost for this script.

Last edited by Nnyan; 05-25-2007 at 05:00 PM.
Reply With Quote
  #10  
Old 05-26-2007, 02:35 AM
colt45 colt45 is offline
Junior Guru
 
Join Date: May 2007
Location: Haleiwa, Hawaii
Posts: 213
Default How do I use it?

Thanks for the script, Nnyan.

Could you explain to a noob how to use this script?

Where do I upload it to? How to I run it?
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit DNS in RC Ace Reseller Hosting 62 09-15-2009 09:11 AM
Can't Edit in Site Builder Ghedini Site Builder 1 07-03-2008 09:34 PM
First windows hosting account created - WHMCS/RC/PLESK - how do you get to plesk? proweb Reseller Hosting 2 05-27-2008 05:12 PM


All times are GMT -5. The time now is 09:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.