...
Principle of Least Privilege
When run with the 'Dependency Check Mode Check' enabled '-D', the Opmantek Installer cannot be run as root.
...
Code Block |
---|
NMIS=/usr/local/nmis9;OMK=/usr/local/omk;[ -x "$NMIS" ] && echo "Has execute permissions: $NMIS";[ -w "$NMIS" ] && echo "Has write permissions: $NMIS";[ -w "$OMK" ] && echo "Has write permissions: $OMK" |
Dependency Check Mode
NMIS9 Compatible OMK Application Installers created on or after 2020-08-18 will include a new option '-D': Dependency Check Mode.
When run with 'Dependency Check Mode' enabled '-D', the Opmantek Installer cannot be run as root.
When run with 'Dependency Check Mode' enabled the installer will write a file containing a list of dependencies to the /tmp/ directory, for example /tmp/omk_dependency_check_opcharts
Below is a Centos 7 Example and Debian 9 Example illustrating how to get dependencies installed on the disconnected (air-gapped) computer.
Those examples are focused on dependencies needed to unpack the installer during execution.
However, the same strategy can be adopted to install dependencies, other than NMIS9, listed during the Dependency Check.
Centos 7 Example
On Redhat and Centos OS, tar and libnsl may need to be installed as they are needed to unpack the installer runfile.
...