aread22 Posted September 24, 2008 Posted September 24, 2008 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 Quote
TCH-Bruce Posted September 24, 2008 Posted September 24, 2008 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. Quote
aread22 Posted September 24, 2008 Author Posted September 24, 2008 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? Quote
TCH-Bruce Posted September 24, 2008 Posted September 24, 2008 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. Quote
MikeJ Posted September 24, 2008 Posted September 24, 2008 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.