Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4536

add-user.sh mangles permissions of mgmt-users.properties

    XMLWordPrintable

Details

    Description

      After running add-user.sh the mgmt-users.properties file has the wrong ownership and permissions.

      [root@jboss-as bin]# ls -hall /etc/jboss-as/standalone/
      total 48K
      drwxrwxr-x. 3 root jboss-as 4.0K Apr 17 09:26 .
      drwxr-xr-x. 4 root root 4.0K Apr 16 21:01 ..
      -rw-rw-r--. 1 jboss-as jboss-as 787 Apr 16 20:48 application-roles.properties
      -rw-rw-r--. 1 jboss-as jboss-as 813 Apr 16 20:48 application-users.properties
      -rw-rw-r--. 1 jboss-as jboss-as 2.0K Apr 16 20:48 logging.properties
      -rw-r--r--. 1 root root 879 Apr 17 09:26 mgmt-users.properties
      -rw-rw-r--. 1 jboss-as jboss-as 837 Apr 16 20:48 mgmt-users.properties.bak
      -rw-r--r--. 1 jboss-as jboss-as 11K Apr 17 09:18 standalone-web.xml
      -rw-rw-r--. 1 jboss-as jboss-as 1.5K Apr 16 20:48 standalone.xml
      drwxr-xr-x. 4 jboss-as jboss-as 4.0K Apr 16 17:10 standalone_xml_history
      

      Ownership and permissions should be the same as the previously installed mgmt-users.properties.
      (Note that due to a packaging bug the permissions are not 600.)

      PropertiesFileLoader creates a new file without taking these requirements into account.

      Attachments

        Activity

          People

            rhn-engineering-mgoldman Marek Goldmann
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: