4 Replies Latest reply on Mar 17, 2015 9:01 AM by dlofthouse

    Adding a user with add-user.sh with no console output

    lostvicking

      HI all,

       

      I have an issue where I want to add an application user as part of a RPM install (preinstall/postinstall script), I've tried:

      ./add-user -a queueUser1 password

      ./add-user -a queueUser1 password --silent

       

      The first gives me the following Java exception:

      No java.io.Console available to interact with user

      The second does not return at all. It is my understanding that there is no console for add-user.sh to output to as this is run as part of an RPM install. The RPM is the way we decided to deploy a .war file to Wildfly. Any help would be much appreciated.

       

      Thanks

      Victor