Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Oracle Solaris, and i would like to startup a script automatically everytime i turn on my computer and log into the desktop, however the script i want to run requires elevated permission, so i have to use SU to run the script.

is there anyway to do this without user input?

share|improve this question
please accept one of the answers below, or provide comments on what else you need. – Yedric Sep 27 '12 at 16:40

Install sudo and configure it to allow you to run this one particular script without a password.

share|improve this answer

Use RBAC which is part of Solaris unlike sudo which is only included starting from Solaris 11. It allows you to run a script as root without providing a password. Solaris provides fine grain privileges so only granting the one(s) really needed by your script would be more secure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.