# Can't install Managed because "dynatrace doesn't have access to following directories: /tmp"

**URL:** <https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed\
**Created:** [June 30, 2023, 5:01pm UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480 "2023-06-30T17:01:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [June 30, 2023, 5:01pm UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480/1 "2023-06-30T17:01:50Z")

</div>

I’m trying to install Managed and get the following error during installation:

```markup
Dynatrace user dynatrace:dynatrace doesn't have access to following directories: /tmp - cannot access, /opt/dynatrace-managed - cannot access, /var/opt/dynatrace-managed - cannot access, /var/opt/dynatrace-managed/log - cannot access, /var/opt/dynatrace-managed/cassandra - cannot access, /var/opt/dynatrace-managed/elasticsearch - cannot access, /var/opt/dynatrace-managed/server - cannot access. Make sure they are accessible and permissions are granted properly.

```

I have tracked it down to several Linux “test”&nbsp; commands failing. Directories are OK, and there are even things in there.

It looks like some PAM issue:

```markup
Jun 30 16:18:16 server runuser[9350]: pam_systemd(runuser-l:session): Cannot create session: Already running in a session or user slice
Jun 30 16:18:16 server runuser[9350]: pam_unix(runuser-l:session): session opened for user dynatrace by (uid=0)
Jun 30 16:18:26 server runuser[9372]: pam_systemd(runuser-l:session): Cannot create session: Already running in a session or user slice
Jun 30 16:18:26 server runuser[9372]: pam_unix(runuser-l:session): session opened for user dynatrace by (uid=0)

```

Also very similar to [https://community.dynatrace.com/t5/Open-Q-A/Problem-with-server-upgrade/m-p/209975](https://community.dynatrace.com/post/209975)

Environment is RHEL 8.7, and there is sssd involved.  
Any ideas, or has anyone gone through one of these?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [July 3, 2023, 7:55am UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480/2 "2023-07-03T07:55:51Z")

</div>

[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;first of all, what version are you trying to install? Does your Linux OS has SELinux enabled?

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [July 3, 2023, 8:18am UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480/3 "2023-07-03T08:18:06Z")

</div>

Not sure if I’ve already seen a support ticket like that but for you Antonio, and others that hit this question:

**In this case, I recommend disabling pam.d service**.

**How to disable PAM service?**

Open the PAM configuration file in your preferred text editor. On most systems, you can do this in the built-in “nano” editor by typing “nano /etc/pam.conf.”

Press “Enter,” and on the very top line, write “skip-authentication”. Save the document. PAM will no longer attempt to authenticate applications and will allow all requested services to run.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [July 3, 2023, 8:18am UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480/4 "2023-07-03T08:18:21Z")

</div>

[@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371),

Latest version. It did have SELinux enabled, but we disabled it.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [July 3, 2023, 8:12pm UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480/5 "2023-07-03T20:12:56Z")

</div>

[@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371)

In RHEL, there is only /etc/pam.d/

In any case, we have created a support ticket, and will post here when I find the cute Linux config affecting this 😉

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [July 4, 2023, 10:57am UTC](https://community.dynatrace.com/t/cant-install-managed-because-dynatrace-doesnt-have-access-to-following-directories-tmp/40480/6 "2023-07-04T10:57:26Z")

</div>

### How to disable the su to root in Linux using PAM

1. 

```c
vim /etc/pam.d/su

```

2. Uncomment this line:

```auto
auth required pam_wheel.so

```

and update it to:

```auto
auth required pam_wheel.so use_uid

```

`su` won’t work anymore. If you would like to enable `su` for other users, then adjust i to:

```auto
auth required pam_wheel.so deny group=nosu

```
