# An error with running a command by remote user

**URL:** <https://community.f5.com/t/an-error-with-running-a-command-by-remote-user/6350>\
**Category:** Technical Forums\
**Tags:** big-ip, ltm, application-delivery\
**Created:** [October 27, 2017, 10:40pm UTC](https://community.f5.com/t/an-error-with-running-a-command-by-remote-user/6350 "2017-10-27T22:40:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![F5\_Digger\_13600](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@F5\_Digger\_13600](https://community.f5.com/u/F5_Digger_13600)\
**Post date:** [October 27, 2017, 10:40pm UTC](https://community.f5.com/t/an-error-with-running-a-command-by-remote-user/6350/1 "2017-10-27T22:40:30Z")

</div>

Did anyone have this error before?

Basically we are using authentication and authorization through TACACS.

One of remote users with the auditor role ran the command “show running-config” to grep all configuration on the LTM. Then the user encountered the following error.

**Error Message**

Unexpected Error: Can’t chmod key management directory: “/var/tmp/key\_mgmt”, error: [1] Operation not permitted

**Environment**

BIG-IP: 11.5.4 HF2

Authentication/Authorization: TACACS

I did some googling and found below release note. Then I tried the workaround but it didn’t fix the problem. BIG-IP 11.5.4 Release Note: [BIG-IP 11.5.4 LTM and TMOS Release Notes](https://support.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/product/relnote-ltm-11-5-4.html) Go to Known bug (568566)

I wonder if there is any better solution or only solution is to upgrade BIG-IP?

Thank you

---

<div class="post-metadata">

**Author:** ![F5\_Digger\_13600](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@F5\_Digger\_13600](https://community.f5.com/u/F5_Digger_13600)\
**Post date:** [October 31, 2017, 8:39pm UTC](https://community.f5.com/t/an-error-with-running-a-command-by-remote-user/6350/2 "2017-10-31T20:39:32Z")

</div>

I opened up a F5 case with this and here is the solution.

If the workaround doesn’t fix the issue, do followings.

As a root, run:

rm -rf /var/tmp/key\_mgmt/

Once a remote user run the command again, the directory key\_mgmt will be created again.

Result of ls -lZ | grep key\_mgmt

Before the change: drwxr-xr-x. root root root:object\_r:tmp\_t:s0 key\_mgmt

After the change: drwxr-xr-x f5\_remoteuser f5\_remoteuser user\_u:object\_r:tmp\_t key\_mgmt

I don’t think Security context wasn’t the issue as other devices having “Before the change” work fine. Maybe some corruption inside of key\_mgmt folder but this is my guess.

Thank you.
