Need to run a bash script that logs on as a non-root user and runs script as root

So I have a script that runs as a non-root user, lets say the username is 'xymon' .
This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root.

in short: user xymon on system A needs to run a file as root user and have the daemon that the script comes up as run as root only.

I don't want to specify the root password in any of the scripts.

Is there a way of doing this?

Check out the documentation for the sudo command and try it out. If you get stuck, do not hesitate to ask. For a remote login use maybe ssh .

Thanks for the pointers.

I managed to setup the sudoers to run the script as root through ssh with no issues!

t.