LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Change the user/group

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2006, 05:03 AM
thbar thbar is offline
Member
 
Join Date: Sep 2006
Posts: 33
Default Change the user/group

Hi!

First I have to say I'm very happy with LSWS (I'm using it with LSAPI and Rails applications) - everything is working very well, adding SSL support was really straightforward etc. So, well, thanks!

During one installation, I choosed nobody:nogroup as the user to run lsws (now I would choose a dedicated user lsws:lsws for that purpose).

It seems that I need to reinstall LSWS to be able to change the user. Can I safely install again on top of an existing installation for that purpose ? Will it keep the existing configuration ?

regards

Thibaut
Reply With Quote
  #2  
Old 10-03-2006, 07:16 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You need to backup lsws/conf directory and restore it after reinstallation.
Reply With Quote
  #3  
Old 10-03-2006, 07:23 AM
thbar thbar is offline
Member
 
Join Date: Sep 2006
Posts: 33
Quote:
Originally Posted by mistwang View Post
You need to backup lsws/conf directory and restore it after reinstallation.
In conf/httpd_config.xml I've noticed:

<user>nobody</user>
<group>nogroup</group>

Obviously I guess I should update this file to match the new user.

is it used purely for display purpose or is it used for something else ?
Reply With Quote
  #4  
Old 10-03-2006, 07:33 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yeah, you need to update that.
Reply With Quote
  #5  
Old 01-18-2009, 12:13 PM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Question difficulty changing to run as lsws/lsws

I'm having difficulty enabling litespeed to run as lsws/lsws as per the page: 'How to Secure User Accounts in Shared Hosting Environment':

http://www.litespeedtech.com/support...ing_securities

I tried to re-install, but it never asked me what user/group to run litespeed as, which contradicts the install documentation which says the installer will ask you this.

I looked at the install.sh script, and noticed it automatically used the user of the install directory, so then I tried changing the install directory and files to the 'lsws/lsws' user/group, and tried the install again...
This did not work, as when I got to the port, it would not let me choose '80', as you must run as 'root' to use that port.

I also want to run SuExec mode as well, as the security page suggests..

How can I get to this setup, running as lsws/lsws, and SuExec, with cPanel/WHM?

TIA...
Reply With Quote
  #6  
Old 01-18-2009, 09:11 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If you want to reinstall, you should remove the whole lsws/ directory.
Reply With Quote
  #7  
Old 01-19-2009, 03:51 AM
amaltemara amaltemara is offline
Member
 
Join Date: Dec 2007
Posts: 29
Question thanks much, what about port 80?

Quote:
Originally Posted by mistwang View Post
If you want to reinstall, you should remove the whole lsws/ directory.
Thanks! I'll remember... but what about running on port 80?

What I want to happen is for the spawned listeners to run as 'lsws/lsws', on port 80.
Reply With Quote
  #8  
Old 01-19-2009, 06:52 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, you can install LSWS to use "lsws/lsws" as user/group, set HTTP port to 80, make sure other web server have been stopped.
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

Forum Jump


All times are GMT -7. The time now is 06:09 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.