A question to user account of Ubuntu 16.04. I am newby to Ubuntu/Linux OS.
I hosted a server and was logged in with ssh (putty client side) and the default root account with all permissions. I created a new user with
adduser newuser. I swapped user with
su -newuser and checked
whoami and was the newuser.
Why i haven't lost the connection with ssh? On windows you get kicked out (pretty sure).
Before i made the newuser i installed MySql with root user. I tried to login after swapping accounts. When you don't enter a username for MySql it takes the name of the logged in account name. Curiously for MySql i was root, even
whoamisaid i am newuser?
After i made a new connection with ssh and "newuser" MySql registered me properly.
Why could i make a connection with ssh even i haven't setted it up (thing of groups?)?
What's the concept of user in Ubuntu. Only access on files and programs?
At least i wan't the make the server secure. I use the https://help.ubuntu.com/16.04/serverguide/serverguide.pdf. Might there be a better documentation - i am computer scientist, so it must not be for dummies - with a little bit more background stuff?
Thanks and kind regards