well, if you only want the root user to be able to run the script, you could just let root own the script and set the permissions so that only root can run it.
If all users are allowed to run the script, but only root users are allowed to access the full functionalitiy through some command line options or something, then you would probably want check inside your script.
|