Jump to content

Recommended Posts

Posted

Hello,

 

Is there anyway to tell apache to run as the user of the domain instead of uid 99 (nobody)? I know this might pose a security risk bu I am coming from 1and1 (the only reason I moved was because of their 100MB mysql limit) as a host and they set up apache that way. It made installing and using drupal a whole lot easier for me as I didn't have to worry about file permissions from drupal's IMCE module and I could upload multiple images and create directories as an ftp user without worrying if IMCE could read those directories because of file permissions etc.

 

The main problem I am having is if I use drupal's IMCE module to create a directory it gets uid 99 and I cannot upload any images to that directory as the ftp user.

 

Thanks

Posted

Welcome to the forums aread22 :)

 

Any scripts running on the server are going to be run as user "nobody", thus files and folders created by the script will get the "nobody" ownership. You will have to open a ticket with the help desk to reset the ownership.

Posted

Thanks for the welcome guys...I have actually been with you guys for years, I just never signed up in the forums!

So, I guess my only option here is to stay within Drupal's IMCE module to avoid any permission problems, I can do that

 

Do you guys have this same restriction on a managed server? Or are managed servers completely under the control of the owner?

Posted

While managed dedicated servers are under the control of the owner, Apache runs scripts as Nobody under Linux. Not sure if it can be changed, the techs on the help desk would be able to answer that definitively.

Posted

With dedicated servers you have the option of reconfiguring PHP to run as the account owner instead of user 'nobody', but it does require some technical knowledge to setup and understand the differences in behavior.

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...