Jump to content

Linux help


windsurfer

Recommended Posts

Posted

Lets say this scenario : 

You have a linux machine and you want to compile and host a zero server . 

Facts:

1 :You only have root password of the linux server (that is not secure and safe to use and login via ssh etc. )

2 :You are using the command  to add a new user "demouser" 

sudo useradd -d /home/demouser -s /bin/bash -m demouser

3 : You give the new user a password ,  sudo privileges  and disable the root account . 

4 : You are compiling under /home/demouser/

5 : Your built server files - bin and etc are under /home/demouser/mangosserver eg. :/home/demouser/mangosserver/bin and /home/demouser/mangosserver/etc

 

And now the question : 

A : Is it safe to host the server from the home directory ?

B : Do i have to change some permissions ? 

 

Thanks a lot for the time you spent reading this thread. Any reply is appreciated.

Posted

hey windsurfer 

 

Answer A: I also run it from home directory and its save like your password is

in addition i prefer to install fail2ban. Like for SSH brutforceing 

B: Yea you need to give the "demouser" full permission for the folders and subfolders

 

Regards

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use