# No root access on AIX system when installing OneAgent

**URL:** <https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392>\
**Category:** Open Q&A\
**Tags:** aix, oneagent\
**Created:** [July 25, 2019, 9:15am UTC](https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392 "2019-07-25T09:15:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [July 25, 2019, 9:15am UTC](https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392/1 "2019-07-25T09:15:56Z")

</div>

Hello,

I currently cannot execute any command as root after OneAgent Installation for AIX.

When executing any kind of command I get back this error:

/opt/dynatrace/oneagent/agent\_install\_5374120/others\> ls

exec(): 0509-036 Cannot load program ls because of the following errors:

0509-150 Dependent module /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so could not be loaded.

0509-022 Cannot load module /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so.

0509-026 System error: A file or directory in the path name does not exist.

root@tws\*\*\*\*\*#/opt/dynatrace/oneagent/agent\_install\_5374120/others\>

As of now I cant even execute the uninstall script. Can tou provide me a solution?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 25, 2019, 9:31am UTC](https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392/2 "2019-07-25T09:31:14Z")

</div>

In general dynatrace is creating new user during installation. Check permissions if all is assigned properly.

Sebastian

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 25, 2019, 10:42am UTC](https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392/3 "2019-07-25T10:42:35Z")

</div>

It seems you have setup a system-wide preloading or just in the session you are logged in.  
Can you write exact steps you did?

It looks as you did insert the LDR\_PRELOAD exports into shell profile or probably system wide, which is **discouraged**.

Try this:

```auto
unset LDR_PRELOAD64
unset LDR_PRELOAD

```

in the shell and see if it helps you to get the control back.

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [July 25, 2019, 12:19pm UTC](https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392/4 "2019-07-25T12:19:54Z")

</div>

Hi,

the problem was solved like this: I took .profile file of another AIX host on which I was root and I put it in the other Aix host were I was having this issue. After that I was able to execute command as root.

The issue was caused by me when I tried to execute the dynatrace .sh for AIX system for a second time without uninstalling the one that was already up and running.

During the second script exec the second OneAgent tried to uninstall the first giving the error and making impossible for me to use commands as root.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 25, 2019, 1:23pm UTC](https://community.dynatrace.com/t/no-root-access-on-aix-system-when-installing-oneagent/21392/5 "2019-07-25T13:23:26Z")

</div>

Glad to hear you solved the issue. However, don’t set up the environment variables for deep monitoring (those LDR\_PRELOAD exports) system-wide or for login users unless you carefully consider the circumstances. You might find yourself unable to login into the system.
