windsurfer Posted August 30, 2016 Report Posted August 30, 2016 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.
Josef Der Banger Posted August 30, 2016 Report Posted August 30, 2016 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
windsurfer Posted August 30, 2016 Author Report Posted August 30, 2016 Appreciate the reply Josef, One thought i have is this : Does the user "demouser" needs to have sudo privileges ? Regards
Recommended Posts
Archived
This topic is now archived and is closed to further replies.