linux - Starting a service as userA from userB by using shell script -
is there way start service usera userb using shell script, usera , userb doesn't have root access. both users password protected.
the usuasual approach make use of 'sudo':
sudo -u userb service whatever start
sudo available out of box on linux systems. can configure it, usera doesn't need enter password use above command.
Comments
Post a Comment