This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
posix_capabilities [2021/02/23 10:07] val создано |
posix_capabilities [2024/12/06 09:21] (current) val |
||
---|---|---|---|
Line 2: | Line 2: | ||
* [[https://habr.com/ru/company/otus/blog/471802/|В двух словах о привилегиях Linux (capabilities)]] | * [[https://habr.com/ru/company/otus/blog/471802/|В двух словах о привилегиях Linux (capabilities)]] | ||
+ | * [[https://man7.org/linux/man-pages/man7/capabilities.7.html|capabilities(7) — Linux manual page]] | ||
+ | |||
+ | <code> | ||
+ | # getcap /usr/bin/ping | ||
+ | /usr/bin/ping = cap_net_raw+ep | ||
+ | |||
+ | # setcap cap_net_raw+ep /usr/bin/prometheus-blackbox-exporter | ||
+ | |||
+ | # service prometheus-blackbox-exporter restart | ||
+ | </code> |