Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-7119

WPA4: Silent installation does not change owner with using --changeOwner parameter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Agents-4.0.0, Agents-5.0
    • Fix Version/s: Agents-4.0.0, Agents-5.0
    • Component/s: web agents
    • Labels:
    • Environment:
      OpenAM Web Agent for Apache Server 2.4.x
       Version: 4.0.0-SNAPSHOT
       Revision: 16156
       Build machine: delacroix
       Build date: Oct 13 2015 10:50:11
    • Sprint:
      Sprint 96 - Team Curie

      Description

      Silent installation does not change owner with using --changeOwner parameter

      STEPS TO REPRODUCE:
      1.) Download and unzip agent
      2.) Install agent in silent mode with --changeOwner parameter

      agentadmin --s "/opt/apache-2.4.9/conf/httpd.conf" \
      "http://riso-centos7.test.forgerock.com:8080/openam" \
      "http://perf-openam2.internal.forgerock.com:80" "/" \
      "apache24" "/tmp/pwd" --changeOwner --acceptLicence
      

      3.) Check the owner of agent_1 instance
      Observed result: owner is not changed

      # ls -l /opt/web_agents/apache24_agent/instances/agent_1/
      total 8
      drwxr-x--- 2 root root 4096 Oct 14 16:03 config
      drwxr-x--- 4 root root 4096 Oct 14 16:03 logs
      

      Expected result: changed owner to daemon (apache user)

      # ls -l /opt/web_agents/apache24_agent/instances/agent_1/
      total 8
      drwxr-x--- 2 daemon root 4096 Oct 14 14:15 config
      drwxr-x--- 4 daemon root 4096 Oct 14 14:15 logs
      

      Agent will not work, because it can not read the config file

      Workaround:
      change permission by hand

      # chown -R daemon: /opt/web_agents/apache24_agent/instances/agent_1
      

      In attachment are install logs from silent(broken) and interactive(works) installation.

        Attachments

          Activity

            People

            • Assignee:
              mareks Mareks Malnacs
              Reporter:
              richard.hruza Richard Hruza
              QA Assignee:
              Richard Hruza
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: