mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 16:14:21 +02:00
doc(sec): deprecate cwrapper_perl (#2678)
This commit is contained in:
parent
daf57deb3c
commit
3a36678c9d
@ -1,4 +1,7 @@
|
|||||||
# HOWTO Centos
|
# HOWTO Centos
|
||||||
|
|
||||||
|
> :warning: **cwrapper_perl is deprecated** because of security issue.
|
||||||
|
> Prefer usage of a sudoers file or use it at your own risk.
|
||||||
|
|
||||||
Install dependencies:
|
Install dependencies:
|
||||||
|
|
||||||
@ -7,7 +10,7 @@ Install dependencies:
|
|||||||
Compile the wrapper:
|
Compile the wrapper:
|
||||||
|
|
||||||
# gcc -o cwrapper_perl cwrapper_perl.c `perl -MExtUtils::Embed -e ccopts -e ldopts`
|
# gcc -o cwrapper_perl cwrapper_perl.c `perl -MExtUtils::Embed -e ccopts -e ldopts`
|
||||||
|
|
||||||
Create a fatpack: https://github.com/centreon/centreon-plugins/blob/master/doc/en/user/guide.rst#can-i-have-one-standalone-perl-file-
|
Create a fatpack: https://github.com/centreon/centreon-plugins/blob/master/doc/en/user/guide.rst#can-i-have-one-standalone-perl-file-
|
||||||
|
|
||||||
Comment following lines in the end of fatpack file:
|
Comment following lines in the end of fatpack file:
|
||||||
@ -27,7 +30,7 @@ Set setuid right:
|
|||||||
|
|
||||||
# chown root:root cwrapper_perl
|
# chown root:root cwrapper_perl
|
||||||
# chmod 4775 cwrapper_perl
|
# chmod 4775 cwrapper_perl
|
||||||
|
|
||||||
Test it:
|
Test it:
|
||||||
|
|
||||||
$ cwrapper_perl centreon_protocol_udp.pl --plugin --mode=connection --hostname=10.30.2.65 --port=161
|
$ cwrapper_perl centreon_protocol_udp.pl --plugin --mode=connection --hostname=10.30.2.65 --port=161
|
||||||
|
Loading…
x
Reference in New Issue
Block a user