'sudoers.cyberark' PATH environment variable overwrite workaround for macOS/Linux

'sudoers.cyberark' PATH environment variable overwrite workaround for macOS/Linux

83
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:07 PM


Objective


For those macOS users who were previously using 'sudoers' file to source their PATH environment variable, there is a clever workaround for making additions to PATH without the need to edit /etc/sudoers.cyberark file that is used by EPM and should not be modified.

Environment


EPM Mac Agent

Procedure


# Open text editor (vim/nano):

vim ~/.zshrc

# Scroll to the bottom of the file (SHFT+G in vim)

# Type ā€˜i’ to insert

PATH="$PATH:/path/to/env/var"

# For instance:

PATH="$PATH:/usr/bin/bash"

# Save the file:

:wq

# Source the file running the following command:
 
source ~/.zshrc

# Confirm the change updates PATH by running the following command:

echo $PATH


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001Oy3CAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail