Answer the question
In order to leave comments, you need to log in
How to login as a different user in a bash script?
I rummaged through a bunch of questions with a similar name, but they ask how to log in as a different user and execute some command in a script. I'm interested in whether it is possible to somehow make the user run a script that logs in the user who launched the script under another user? Those. a person logged into the system under user1, runs the script, the script works out and the person ends up in a session under the account user2
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question