Hopefully a really simple question.
I have logged in as root and setup some files for a user. Lets pretend the user is named someguy. I change the ownership of the files so they are owned by someguy.
I want to execute one of the files, but that means the process will be owned by root and not by someguy right? So thats a problem..
What I would like to do, is just type a command like: changeuser someguy password and have it switch to that user. then when I am done type exit and then it goes back to root. it would be cool that because I am root i wouldnt need to know the password for that user. is there something like this thats possible?
or perhaps a way to execute the file as another user instead of root?
Thank you for your help, greatly appreciated