Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

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

share|improve this answer

Your Answer

 
discard

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.