Community discussions

MikroTik App
 
ACHim
just joined
Topic Author
Posts: 2
Joined: Mon Jan 15, 2018 8:49 pm

Run Script as different User

Sun Jun 16, 2024 2:24 pm

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?