Running in root privileges (login-server crashed)

MikZ

New member
Messages
461
Points
0
Good day!

May I know how to run the server not in root privilege's? I am about to transfer my hosting to other host, upon running it in logging in the login-server crashed . stating on gdb i am running the herc in root privilege's. but as i sudo test it says the user is not listed in sudoers.

image.png

image.png

 
Running with root privileges is inherently insecure and so Hercules will complain when trying to start as the root user.

You must create a new user and run Hercules under that new user (preferably as a daemon).

To run a command with sudo your user must be in the sudoers file (you can edit it with visudo) but keep in mind that Hercules will also warn you when running with sudo (since it runs as root).

 
Last edited by a moderator:
Running with root privileges is inherently insecure and so Hercules will complain when trying to start as the root user.

You must create a new user and run Hercules under that new user (preferably as a daemon).

To run a command with sudo your user must be in the sudoers file (you can edit it with visudo) but keep in mind that Hercules will also warn you when running with sudo (since it runs as root).
I am sorry i am really not good at it. I am running a non-ro hosting.
While transferring i did this

useradd --create-home --shell /bin/bash hercules1234

passwd hercules1234

then:

su hercules1234

vncserver

vncpasswd

then:

transfer the files under hercules1234 user

all files where being transfer under hercules1234 user

created new user(hercphp) with root privileges in mysql.

login to mysql -u hercphp

upload  sql

then su hercules1234
go to trunk ./athena.-start start. works fine. but upon login. disconnect to login-server

What did i missed?

Does the unzipping gives root privileges? 

 
Last edited by a moderator:
Back
Top