I want to restrict what a user B can do on my server. More precisely, I want him to be able to run only specific command/script that user A can run (and which has to be run as user A).
How is it possible to make user B execute only this script as user A?
What I've found mentioned using sudo
, which user B doesn't have access to. Can I change the permission of the script so that B can run it as A?