Obfuscator
August 8th, 2007, 10:19 AM
Hi!
I've been looking around this forum and using google for several hours without finding the answer to this one.
I've installed jboss, and want to run it as a service, under the user "jboss".
I've created a script in /etc/init.d/jboss. This script does "su -l jboss -c '/opt/jboss/bin/run.sh' "
This method seems to work if its started from rc*.d, since the su works great when being root.
When I'm my default user, however, issuing /etc/init.d/jboss start prompts me with a password. I would like to avoid this.
I know that if I try to run any other init scripts that are already there, I'm not prompted with any password, even though they may run as other users
(for example apache2, which runs as www-data).
I've tried to disable password for the jboss user (bad idea?), doing a chmod u+s on the init script and also setting a blank password (did not work and definataly bad idea i think). So what do I do??? Does it make a difference if I make the jboss user a "system user"?
Thanks
I've been looking around this forum and using google for several hours without finding the answer to this one.
I've installed jboss, and want to run it as a service, under the user "jboss".
I've created a script in /etc/init.d/jboss. This script does "su -l jboss -c '/opt/jboss/bin/run.sh' "
This method seems to work if its started from rc*.d, since the su works great when being root.
When I'm my default user, however, issuing /etc/init.d/jboss start prompts me with a password. I would like to avoid this.
I know that if I try to run any other init scripts that are already there, I'm not prompted with any password, even though they may run as other users
(for example apache2, which runs as www-data).
I've tried to disable password for the jboss user (bad idea?), doing a chmod u+s on the init script and also setting a blank password (did not work and definataly bad idea i think). So what do I do??? Does it make a difference if I make the jboss user a "system user"?
Thanks