 Some systems specify the default path in a configuration file, others hard-code it into the dynamic loader.Some executable file formats can specify additional directories in which to search for libraries for a particular program.This can usually be overridden with an environment variable, although it is disabled for setuid and setgid programs, so that a user can't force such a program to run arbitrary code with root permissions.