I have a script under /etc/init.d/jboss
When I start the Jboss under my user account (assumed test) I type:
[test ~]#/etc/init.d/jboss start
And it will ask me for paaword:
And I have to type the password.
I find this is quite boring. So I want to write a script locally (assumed called myJboss) so when I want to start the Jboss I just type in:
[test ~]#myJboss start [password]
And this script will not ask me for password anymore.