You could do this...
Give the user permission to run shutdown with sudo, if you have it (man sudo), and then add the script to the user's .bash_profile (basically this would be the only command in the file).
An alternative to sudo is just giving the user root permission, if shutting down is the only thing the user will be doing.
|