Skip to content

How to add NPP_DIR to sudoers

Jurek Muszyński edited this page Dec 18, 2021 · 1 revision

This is required only if you want to listen to the port below 1024, i.e. standard HTTP port 80, or HTTPS 443.

Without it sudo won't see your environment variable.

sudo visudo

then find the block starting with Defaults env_reset and add the new line like this:

Defaults    env_keep += "NPP_DIR"

(If you don't know vi editor yet, here is a cheat sheet.)

Clone this wiki locally