Jump to content
  • 0
MikZ

Running in root privileges (login-server crashed)

Question

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.67a0eeaca3b7d6e99e0faf514e05000a.png

image.png.606a35ede467b6651915ec592afcd074.png

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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).

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, meko said:

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? 

 

Edited by MikZ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.