Page 1 of 1

Run Script as different User

Posted: Sun Jun 16, 2024 2:24 pm
by ACHim
Hello everyone,
Is it possible to give a script a user with whom it then runs?

I set up SSH with Keys to not need a password for ssh-exec.
In addition, I equipped a local user with the Priv key (I log in via Radius) and, logged in as this user, everything works great on the shell too.

But if I now write a script with which the user is logged in via Radius, the SSH login via the scripts no longer works :(

What can I do here?