Besides the fact that the user must call the ruby โโscript through sudo , is there a way to run the script as a regular user, then at some point during execution, increase the privileges to root by asking the user for their root password?
Could it be something like #exec strings using the current command with the sudo prefix?
source share