dz.user.path
This parameter specifies that the match path uses the standard
user path. The standard user path includes paths such
as /sbin
, /usr/sbin
, and so forth.
When the dzdo
or dzsh
process goes to run a command with a full path, those
processes will check if the command is associated with any DZ
command rights. The process checks for command rights by matching the
criteria of the DZ command rights in the assigned roles.
If a DZ command right is defined to use the "Standard user path", the process will see if the command path matches one of the paths configured by this parameter.
For example, if a user specifies either just the command or the command and its path,
such as id_test
or /user/local/bin/id_test
, the shell finds the command and then
dzdo
or dzsh
will get the full path. With that full path to compare against,
the dzdo
or dzsh
processes will see if they match against the paths set by this parameter.
In this example, let's say that the dz.user.path
parameter is set to the default value.
When the user tries to run the id_test
command, dzdo
or dzsh
will try to match
the path to one of the following:
/bin/id_test
/usr/bin/id_test
/usr/local/bin/id_test
If the command actually is in one of those directories, then the operation will continue and the command can run according to the DZ command rights.
The default value for this parameter lists the most common locations for matching command line programs in the user path. For example:
dz.user.path: "/bin:/usr/bin:/usr/local/bin"