Jump to content

Recommended Posts

Posted

Greetings,

i've been with TCH since June (i believe) and haven't had this problem before...

After i updated my copy of Mambo today (www.impleri.net), i tried to install a template and discovered that it was listing certain directories as being unwriteable. So, i checked the CHMOD stuff and those directories were CHMODed to 775, so it shouldn't have been a problem. So, i went to the configuration to check it out and it too was unwriteable, even though it's CHMOD was the standard 644.

Odd...so i checked another installation i have (demo.impleri.net) and discovered that it too now saw certain directories as unwriteable, when they were perfectly writeable 6 weeks ago when i last touched the files. Does anyone have any clue why this would be?

Posted

As Mambo is a PHP script, it runs as the user 'nobody'. In order for it to create and delete files in a directory (one that you own), the directory permissions must be set to 0777, and file permissions on a file that you own must be 0666 in order to modify the file. 0775 directory permissions and 0644 file permissions would not be sufficient to allow Mambo to create/modify/delete files.

Posted

Did this recently change? i didn't have this problem 6 weeks ago...?

Posted
As Mambo is a PHP script, it runs as the user 'nobody'.  In order for it to create and delete files in a directory (one that you own), the directory permissions must be set to 0777, and file permissions on a file that you own must be 0666 in order to modify the file.  0775 directory permissions and 0644 file permissions would not be sufficient to allow Mambo to create/modify/delete files.

 

Thanks for this insight. I am struggeling with exactly the same problem. Allow me a couple of questions.

 

Why is mambo running as user nobody? Why does it not runn under my username? It is after all my account. Should php or Apache not know that the script is owned by the user who uploaded it?

 

Second question would setting everything to 777 and 666 not compromize security? Would that not mean that anyone can read write and execute in these directories?

 

Sorry if I just display my ignorance. But calling the ISP on a houerly rate when I install and remove mambo components is not nice and i like to find a solution to this problem.

 

Thanks for any help you can give.

Regards Manfred

Posted

Welcome to the forums Manfred.

 

As David said, PHP runs on the server as user "nobody".

 

Setting everything to 777 and 666 will indeed leave you open to security risks.

Posted

Welcome to the forums, Manfred! :P

 

Why is mambo running as user nobody? Why does it not runn under my username? It is after all my account. Should php or Apache not know that the script is owned by the user who uploaded it?

Running PHP scripts under your user ID requires configuring the web server to use phpsuexec to run them. From what I understand, phpsuexec is not used on TCH servers as some features of PHP don't work with phpsuexec enabled, and it can also result in breaking a number of PHP scripts.

 

Second question would setting everything to 777 and 666 not compromize security? Would that not mean that anyone can read write and execute in these directories?

Yes, this does weaken security in your account. In this case, 'anyone' would be any other user with an account on the same server as you (other TCH customers on your server). I don't believe there is any significant risk from the other customers on your server. The main threat is from hackers exploting a vulnerable script in another user's account, then being able to access your files and directories that have 0666/0777 permissions.

 

Your main defenses here are 1) only set 0777 directory / 0666 file permissions on directories and files that require it, and 2) make and keep regular backups of your account, so if your files are tampered with, they can be easily restored.

 

Sorry if I just display my ignorance. But calling the ISP on a houerly rate when I install and remove mambo components is not nice and i like to find a solution to this problem.

If it's just a permissions problem, you could use a PHP script to set/change permissions on files and directories that are owned by 'nobody' (since you aren't able to set them via an FTP program or CPanel's File Manager).

Posted

Welcome to the forums, Manfred :P

 

You are lucky that your ISP lets you run php

most just give you plain web space.

 

Mine won't even let me use ftp with my included web space,

so I do not even use it.

Of course no biggy since I have all the features I need here. :)

  • 1 month later...
Posted (edited)

I have a similar problem: Installed mambo, uploaded a couple of componentes, and later, I can not delete some directorioes or even upload files to these directories using the CPanel file manager or via FTP.

 

Any ideas?

 

Regards

 

the website is:

 

Edit by TCH-David: URL removed

 

(sorry, no domain pointed there yet)

Edited by TCH-David
Posted

I have an idea, the script used to create those directories are not owned by you so you cannot delete them.

 

Please open a help desk ticket and they can remove them or change ownership for you.

Posted
the website is:

 

Edit by TCH-David: URL removed

 

(sorry, no domain pointed there yet)

The server address is only supposed to be used while your domain propogates (initial setup of your account). It is against TCH policy to direct traffic through the server domain name in any way. You must have all traffic go through the domain name that you have established with your account. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...