Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2007, 04:00 PM
Junior Member
 
Join Date: Mar 2007
Posts: 19
Default running apache as a different user

I'm trying to find out how I can create a superuser account that I can then use to stop and restart apache so all of my php scripts will run as that superuser instead of no one.
Reply With Quote
  #2 (permalink)  
Old 06-23-2007, 09:45 AM
Moderator
 
Join Date: Sep 2006
Posts: 629
Send a message via MSN to harry
Default

**To have a user superuser access you need to add a user to the wheel group. Add a user and assign him to wheel group.

useradd test -g wheel
passwd test

**enter password twice for test user.

You should be good to go. Login to server as a test user and type the below command

su -

**you will then be prompted for root password. Once specifed, the test user will act as a root user.
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:01 AM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum