Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) Safe-mode: OFF (not secure) /usr/share/doc/pam-1.1.8/html/ drwxr-xr-x |
Viewing file: Select action/file-type:
pam_exec is a PAM module that can be used to run an external command.
The child's environment is set to the current PAM environment list, as
returned by
pam_getenvlist(3)
In addition, the following PAM items are
exported as environment variables: PAM_RHOST,
PAM_RUSER, PAM_SERVICE,
PAM_TTY, PAM_USER and
PAM_TYPE, which contains one of the module
types: Commands called by pam_exec need to be aware of that the user can have controll over the environment.
Add the following line to password optional pam_exec.so seteuid /usr/bin/make -C /var/yp This will execute the command make -C /var/yp with effective user ID. |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.004 ]-- |