---
title: Editing OS-level environment variables
description: Edit OS-level environment variables such as PATH and LD_LIBRARY_PATH that the PingDirectory server overrides at startup.
component: pingdirectory
version: 10.3
page_id: pingdirectory:installing_the_pingdirectory_suite_of_products:pd_ds_edit_os_env_variables
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/installing_the_pingdirectory_suite_of_products/pd_ds_edit_os_env_variables.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2024-08-13T00:00:00Z
superseded_by: https://docs.pingidentity.com/pingdirectory/11.1/installing_the_pingdirectory_suite_of_products/pd_ds_edit_os_env_variables.html
---

# Editing OS-level environment variables

Certain environment variables might affect the PingDirectory server in unexpected ways. This is particularly true for environment variables that are used by the underlying operating system to control how it uses non-default libraries.

For this reason, the PingDirectory server explicitly overrides the values of key environment variables like *\<PATH>*, *\<LD_LIBRARY_PATH>*, and *\<LD_PRELOAD>* to ensure that environment settings used to start the server do not inadvertently impact its behavior.

If you need to edit any of these environment variables, set the values of those variables by manually editing the *\<set_environment_vars>* function of the `lib/_script-util.sh` script.

You must stop (`bin/stop-server`) and re-start (`bin/start-server`) the server for the change to take effect.
