Passa al contenuto principale
Supporto OCLC

RunAs

This directive allows you to configure EZproxy, running on Linux, to startup automatically when the system boots with a non-root account and still open ports below 1024.

RunAs  is a position-independent config.txt directive that is available in EZproxy for Linux. The RunAs directive allows you to tell EZproxy to change from the root user to a non-privileged user, and optionally a different group. EZproxy switches to the account specified at its earliest opportunity, after it completes any tasks requiring elevated privileges, but before it actually begins proxying work.

When using RunAs, ensure that the EZproxy installation directory and its contents are owned by the designated non-privileged user. You may notice one root-owned “Guardian” process persists in the background; this is normal and ensures EZproxy can be restarted if needed.

Example

RunAs someuser
RunAs someuser:somegroup

Related directives

LoginPort