|
Programming Talk This forum is for all programming questions. The questions do not have to be directly related to Ubuntu and any programming language is allowed. |
|
Thread Tools | Display Modes |
|
#1 |
Ubuntu Extra Shot
|
[Apache] Changing user from www-data to....
Hello,
As some of you may have read in my other post, about running a java application with php (URL). In the disscussion we came to the conclusion that the reason the scripts were not working properly was that the user www-data was not running under the x display. What i would like to do is completly change over the user stats from www-data to cody. Now, before i get several people telling me the LARGE securety risks, i am well aware of the hole that this will open. This will be on a computer with absolutely no personal data on it at all, if someone hacks it, the most they could do is stop my downloads, or view my current background, so please dont inform me of that. Ive tried seatching all files for the text www-data but that took hours and only found 5 files, 1 of which were relivent. So there must be a loctaion to change the main user. Ive looked in these locations: /etc/apache2/apache2.conf /etc/apache2/httpd.conf /etc/apache2/envvars /etc/php5/apache2/php.ini Please tell me where it is that i need to go to change the user from www-data to cody Thanks ~Cody Woolaver
__________________
while(!(succeed = try())) |
|
|
|
#2 | |||
Just Give Me the Beans!
Join Date: Nov 2007
Location: Nijmegen, Netherlands
Beans: 62
Ubuntu 10.10 Maverick Meerkat
|
Re: [Apache] Changing user from www-data to....
Quote:
Code:
sudo gedit /etc/apache2/envvars Quote:
Quote:
__________________
Peter Martin - Joomla Open Source CMS specialist www.db8.nl from Nijmegen, The Netherlands OS: Arch Linux | Arch Linux ARM | Debian | Ubuntu Linux User Group Nijmegen http://www.linuxnijmegen.nl/ |
|||
|
|
|
#3 |
A Carafe of Ubuntu
|
Re: [Apache] Changing user from www-data to....
it worked for me thanks.
|
|
|
|
#4 |
Ubuntu Extra Shot
|
Re: [Apache] Changing user from www-data to....
Thanks for replying to a topic that is over a year old
__________________
while(!(succeed = try())) |
|
|
|
#5 |
Spilled the Beans
Join Date: Jul 2010
Beans: 17
|
Re: [Apache] Changing user from www-data to....
By the way, how can I set different RUN_USER for each vhost?
|
|
|
|
#6 |
First Cup of Ubuntu
Join Date: Aug 2012
Beans: 2
|
Re: [Apache] Changing user from www-data to....
I know it's an old post but thank you, exactly what I was looking for, works perfectly!
...dont forget about permissions. Jack |
|
|
Bookmarks |
|
|