Forum

> > CS2D > Servers > How to start server in 'home' folder?
Forums overviewCS2D overview Servers overviewLog in to reply

English How to start server in 'home' folder?

4 replies
To the start Previous 1 Next To the start

old How to start server in 'home' folder?

BountyHunter
User Off Offline

Quote
Hey guys, I'm using Putty to start server and there is a command to lauch dedicated server, like:
chmod 777 ./cs2d/cs2d_dedicated
screen ./cs2d/cs2d_dedicated

But these cmds are for "root" folder, what cmd I need to type when server is in "home" folder. I was always hosting server in 'root' but I acknowledged that it's dangerous, so I want to host it in 'home'.

old Re: How to start server in 'home' folder?

DC
Admin Off Offline

Quote
It's not just about the folder. It's about the user as which you are executing the game. You should create a Linux user with limited rights. In best case one which can only access the folder where you placed CS2D. This way CS2D itself would have no permission to touch any viable system files or anything else outside its own folder.

Simply creating a folder in your home directory and still executing CS2D as root user in this folder won't give you any additional security.

You can use Google to find instructions about this e.g.:
http://superuser.com/questions/149404/how-can-i-create-an-ssh-user-who-only-has-permission-to-access-specific-folders

You should probably also take a look at how paths work and how the command cd (change directory) works.
http://www.computerhope.com/unix/ucd.htm
edited 1×, last 11.02.15 08:09:52 am
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview