- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
05-12-2025 11:15 AM
Hi Team,
We have a big problem. User execute following command directly in the system even using HTML GW or Putty session over PAM. But when user connect to system with other tools(like XSHELL or SecureCRT) over PAM we see the "You are not authorized to execute command" error. AlsoCommand Access Control and OPM are not being used. Pls assist for that.
Note: Also 1 other community user asked about that but not answered yet - https://community.cyberark.com/s/question/0D5Ht0000A79vgfKQA/error-%D1%83ou-are-not-authorized-to-execute-command-when-using-midnight-commander-via-psmp
05-12-2025 06:50 PM
Hi @Maharram Najafov
If I understand correctly, the user is able to execute the command when session is made via PSM.
Please note, some environments include logic in .bash_profile , /etc/profile, or PAM modules to detect SSH client type or source IP, and restrict access conditionally.
The best to check with your Unix team as they will be able to advise you if such controls are in place.
Hope it helps !
05-22-2025 12:18 AM
Hello @Maharram Najafov
Have you received an answer to your question? If so, we kindly encourage you to share it with us.
Your insights could be valuable to other community members in the future.
Thank you, Isar.
03-10-2026 05:14 AM
Hi @Maharram Najafov ,
did you resolve the issue?
I hit the same problem.
Just when using PSM for SSH.
Other ways of connection are not impacted - meaning : not a problem of target server.
Filiip
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

