'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