Forum

> > CS2D > Servers > just got a new vps
Forums overviewCS2D overview Servers overviewLog in to reply

English just got a new vps

32 replies
Page
To the start Previous 1 2 Next To the start

old just got a new vps

amtooscaredlool
BANNED Off Offline

Quote
hey i just got a new vps can some1 help me with setting it up its lunix im too dumb to do it i tired to download cs2d failed :?

add me on here and ill send u my discord link or skype what ever helps me thru this problem

+ slow vps 500ram Fml

old Re: just got a new vps

ohaz
User Off Offline

Quote
NEVER EVER run CS2D as root. Just don't. Don't even start giving advice that contains running applications as root. Please edit your guide @user CrazyPenguin. It's super dangerous.

old Re: just got a new vps

CrazyPenguin
User Off Offline

Quote
@user ohaz: When you buy VPS you get a username for your server which you use to login to FileZilla and PuttY

When you login to FileZilla all your server folders are stored under your username (in my case "root")

You store the CS2D folder under your username (in my case "root") because there is nothing else then your username file in there and what is in it

Once you store your CS2D folder under your username you navigate the command going trough your username folder which in my case is "root" that means /root/ (1st folder main folder) CS2D/ (then folder under it which is CS2D folder) /cs2d_dedicated (the server file)

old Re: just got a new vps

Yates
Reviewer Off Offline

Quote
@user CrazyPenguin: The default user account that comes with (almost) all Linux systems is root. You should instantly create a new account with sudo permissions and disable the root user account. The root user has access to everything, it can do everything and that's why running processes as root is so dangerous as these processes may use the root user permissions (as its run as root) to do serious harm to your system.

Never run anything with root. It's bad practice and very stupid.

old Re: just got a new vps

CrazyPenguin
User Off Offline

Quote
@user Yates: And what users can access my root without password and SSH security key except me ?

And what system they can harm ? The VPS or my own computer which I don't even run the server on ?

old Re: just got a new vps

Yates
Reviewer Off Offline

Quote
I never said users, I said processes.

There was a cool little trick a few years back we used with CS2D. We were able to use Lua to execute commands on your server as the user you started the process with (edit: you might be able to still do this lol).

Let's say you start cs2d_dedidated with the user root and I am able to take over the process, I could (depending on the process) be able to execute commands to fuck-up your system like
chmod -R 777 /*


This of course depends on whether the command needs password authentication, but I could definitely delete your entire user folder. That would be pretty sad, wouldn't it?

Don't use the root account. It's evil.
edited 3×, last 08.01.18 05:58:12 pm

old Re: just got a new vps

CrazyPenguin
User Off Offline

Quote
@user Yates: delete files and damage what ? My VPS or my real computer I am currently on ? Because my computer does not run the server it is from the VPS (virtual machine with different IP)


@user CrazyPenguin_VS_Yates: did you just created a account for this ? Btw this is not a fight just a discussion calm down
edited 1×, last 08.01.18 05:59:43 pm

old Re: just got a new vps

Yates
Reviewer Off Offline

Quote
Oh you're running it as a virtual machine? That makes things even more interesting! Depending on the configuration of a possible bridge I could do harm to both systems. I would even be able to access modem and router settings if these are not protected well enough (they never are).

Possibilities are endless with root. That's why you lock it up and throw away the key.

old Re: just got a new vps

Yates
Reviewer Off Offline

Quote
No, because you ran the process as root. This is the same for any other account, but at least they need sudo permissions and authentication upon using sudo.

old Re: just got a new vps

CrazyPenguin
User Off Offline

Quote
So just create another folder that is not in root and place CS2D in there then run it from there ?

What is sudo premission and what authentication ? Do I have them do I know them ? Or this is something that hosting service has ?


And "sudo passwd root" will be enough to set a crazy password I won't ever need to lock it ?



So
chmod -R 777 *
is good and
chmod -R 777 /*
is bad ?
edited 5×, last 08.01.18 06:45:20 pm

old Re: just got a new vps

CrazyPenguin
User Off Offline

Quote
@user Yates: that is not really helpful at this moment since I am running my server currently this way, its how other people that ran it this way explained it to me

So far so good, but can you tell me other way on how am I supposed to upload CS2D folder on my VPS server and run it ? This is the only way I know

And will "sudo passwd root" command be enough to set a password to lock root ?
To the start Previous 1 2 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview