I am trying to implement sudo access to the host and give them access to stop and start the jboss script using cli in Solaris environment. .. but i can do it using jboss id .
Matching Defaults entries for xxxx on this host:
env_reset, mail_badpass, secure_path=/usr/sbin\:/usr/bin\:/sbin\:/bin, logfile=/var/log/sudo.log, badpass_message="Password is wrong, please try again", passwd_tries=5, log_input, log_output
User xxxx may run the following commands on this host:
(root) /opt/bin/XXXX/start.sh, (root) /opt/bin/XXXX/stop.sh
Authenticating against security realm: ManagementRealm
Username: XXXXX
Password:
org.jboss.as.cli.CliInitializationException: Failed to connect to the controller
at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:280)
at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:246)
at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:411)