Hey im making a bash program (.sh) for my game server.
Im trying to A) make a new user [depending on the variable] B) Set the password [depending on the vavriable] and C) Login to that user, run a command, then go back to the user you were logged in as before.
I already know steps A and B but I dont know how to login as another via Bash commands.
It would be nice if I knew how to do this.