Besides what [email protected] said, you would also need to handle the escalation at every place you might have a permission related error. Unless your command alwaysneeds to run as root, so you can check once in the beginning, it would be cumbersome and error prone.
Also, sometimes in multi users environments, you might want to execute as 3rd user, not root or your own, if something fails.
Besides what [email protected] said, you would also need to handle the escalation at every place you might have a permission related error. Unless your command alwaysneeds to run as root, so you can check once in the beginning, it would be cumbersome and error prone.
Also, sometimes in multi users environments, you might want to execute as 3rd user, not root or your own, if something fails.