{"id":36529,"date":"2024-08-13T12:49:15","date_gmt":"2024-08-13T09:49:15","guid":{"rendered":"https:\/\/itedu.center\/ua\/blog\/?p=36529"},"modified":"2024-08-13T12:49:15","modified_gmt":"2024-08-13T09:49:15","slug":"shcho-take-sudo-v-linux","status":"publish","type":"post","link":"https:\/\/itedu.center\/ua\/blog\/sysadministration\/shcho-take-sudo-v-linux\/","title":{"rendered":"\u0429\u043e \u0442\u0430\u043a\u0435 sudo \u0432 Linux?"},"content":{"rendered":"\n<p>\u041d\u0430 \u043f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u0435\u0442\u0430\u043f\u0430\u0445 \u0440\u043e\u0437\u0432\u0438\u0442\u043a\u0443 Linux \u0432\u0441\u0435 \u0431\u0443\u043b\u043e \u0437\u043d\u0430\u0447\u043d\u043e \u0441\u043a\u043b\u0430\u0434\u043d\u0456\u0448\u0435. \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0438 \u0431\u0443\u043b\u0438 \u043c\u0435\u043d\u0448 \u0437\u0440\u0456\u043b\u0438\u043c\u0438, \u0456 \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c \u0431\u0443\u0432 \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0439 \u043e\u0431\u043b\u0456\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 \u2014 <strong>root<\/strong>. \u0412\u0456\u043d \u043d\u0430\u0434\u0430\u0432\u0430\u0432 \u043f\u043e\u0432\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0439\u043d\u043e\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u044e.&nbsp;<\/p>\n\n\n\n<p>\u0406\u043d\u043e\u0434\u0456 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0440\u043e\u0437\u0456\u0433\u0440\u0430\u0442\u0438 \u043d\u0435\u0434\u043e\u0441\u0432\u0456\u0434\u0447\u0435\u043d\u0438\u0445 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0432\u0448\u0438 \u0457\u0445 \u0443\u0432\u0456\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u043a <strong>root<\/strong> \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0438 su, \u0430 \u043f\u043e\u0442\u0456\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rm &#8211; rf \/.&nbsp;<\/p>\n\n\n\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>rm<\/strong> \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0456\u0432 \u0456 \u0442\u0435\u043a, \u0430 \u043e\u043f\u0446\u0456\u0457 <strong>-r <\/strong>(\u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0430) \u0442\u0430 <strong>-f<\/strong> (\u043f\u0440\u0438\u043c\u0443\u0441\u043e\u0432\u0430) \u043f\u0440\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u044c \u0434\u043e \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u0432\u0441\u044c\u043e\u0433\u043e \u0432 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u043e\u043c\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0437\u0456 (\/), \u0449\u043e \u0440\u043e\u0431\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0435\u043f\u0440\u0438\u0434\u0430\u0442\u043d\u043e\u044e \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f.&nbsp;<\/p>\n\n\n\n<p>\u0423\u0441\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438, \u044f\u043a\u0456 \u0432\u0438\u043c\u0430\u0433\u0430\u043b\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u0445 \u043f\u0440\u0438\u0432\u0456\u043b\u0435\u0457\u0432, \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u043b\u0438\u0441\u044f \u0432\u0456\u0434 \u0456\u043c\u0435\u043d\u0456 <strong>root<\/strong>. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043c\u0430\u0432 \u043f\u0435\u0440\u0435\u043c\u0438\u043a\u043d\u0443\u0442\u0438\u0441\u044f \u043d\u0430 <strong>root<\/strong> \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0438 <strong>su<\/strong>, \u0430\u0431\u043e \u0443\u0432\u0456\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u043a <strong>root<\/strong>.&nbsp;<\/p>\n\n\n\n<p>\u041e\u0431\u0438\u0434\u0432\u0430 \u0446\u0456 \u043f\u0456\u0434\u0445\u043e\u0434\u0438 \u0432\u0438\u044f\u0432\u0438\u043b\u0438\u0441\u044f \u043d\u0435\u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0438\u043c\u0438, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043d\u0430\u0434\u0430\u0432\u0430\u043b\u0438 \u043f\u043e\u0432\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u044e. \u042f\u043a\u0449\u043e \u0445\u0430\u043a\u0435\u0440 \u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e <strong>root<\/strong>, \u0432\u0456\u043d \u043c\u0456\u0433 \u0437\u0430\u0432\u0434\u0430\u0442\u0438 \u0437\u043d\u0430\u0447\u043d\u043e\u0457 \u0448\u043a\u043e\u0434\u0438.<\/p>\n\n\n\n<p>\u0414\u043b\u044f \u0440\u043e\u0437\u0432&#8217;\u044f\u0437\u0430\u043d\u043d\u044f \u0446\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0431\u0443\u043b\u043e \u0440\u043e\u0437\u0440\u043e\u0431\u043b\u0435\u043d\u043e <strong>sudo<\/strong>.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"349\" src=\"https:\/\/itedu.center\/ua\/blog\/wp-content\/uploads\/2024\/08\/sudo_inside_banner.png\" alt=\"\" class=\"wp-image-36530\" srcset=\"https:\/\/itedu.center\/ua\/blog\/wp-content\/uploads\/2024\/08\/sudo_inside_banner.png 819w, https:\/\/itedu.center\/ua\/blog\/wp-content\/uploads\/2024\/08\/sudo_inside_banner-300x128.png 300w, https:\/\/itedu.center\/ua\/blog\/wp-content\/uploads\/2024\/08\/sudo_inside_banner-768x327.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/figure>\n\n\n\n<p><strong>Sudo<\/strong> \u0440\u043e\u0437\u0448\u0438\u0444\u0440\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u044f\u043a \u00absuperuser do\u00bb \u0456 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0437\u0432\u0438\u0447\u0430\u0439\u043d\u0438\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c (\u044f\u043a\u0456 \u0432\u0445\u043e\u0434\u044f\u0442\u044c \u0434\u043e \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432) \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0437 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438. \u0426\u0435 \u0440\u0456\u0448\u0435\u043d\u043d\u044f \u043c\u0430\u043b\u043e \u0434\u0432\u0456 \u043e\u0441\u043d\u043e\u0432\u043d\u0456 \u043f\u0435\u0440\u0435\u0432\u0430\u0433\u0438:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043e\u0431\u043b\u0456\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 root \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0443\u0432\u0430\u0442\u0438, \u0437\u043d\u0438\u0436\u0443\u044e\u0447\u0438 \u0440\u0438\u0437\u0438\u043a \u0439\u043e\u0433\u043e \u0437\u043b\u043e\u0432\u0436\u0438\u0432\u0430\u043d\u043d\u044f<\/li>\n\n\n\n<li>\u043b\u0438\u0448\u0435 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456 \u0437 \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432 \u043c\u043e\u0433\u043b\u0438 \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u0432\u0430\u0436\u043b\u0438\u0432\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f.\u00a0<\/li>\n<\/ul>\n\n\n\n<p><strong>Sudo<\/strong> \u0442\u0430\u043a\u043e\u0436 \u0441\u043f\u0440\u043e\u0441\u0442\u0438\u0432 \u043f\u0440\u043e\u0446\u0435\u0441 \u0434\u043e\u0434\u0430\u0432\u0430\u043d\u043d\u044f \u0442\u0430 \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u0437 \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432. \u0426\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u043b\u0435\u0433\u0448\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0432\u0430\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u043f\u0440\u0438\u0432\u0456\u043b\u0435\u0457\u0432. \u0426\u044f \u0437\u043c\u0456\u043d\u0430 \u0437\u043d\u0430\u0447\u043d\u043e \u043f\u0456\u0434\u0432\u0438\u0449\u0438\u043b\u0430 \u0431\u0435\u0437\u043f\u0435\u043a\u0443 Linux \u0456 \u0437\u0440\u043e\u0431\u0438\u043b\u0430 \u0440\u043e\u0431\u043e\u0442\u0443 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u0431\u0456\u043b\u044c\u0448 \u0437\u0440\u0443\u0447\u043d\u043e\u044e. \u0417 \u043f\u043e\u044f\u0432\u043e\u044e sudo \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c \u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0431\u0443\u043b\u043e \u043f\u043e\u0441\u0442\u0456\u0439\u043d\u043e \u0432\u0445\u043e\u0434\u0438\u0442\u0438 \u0432 \u043e\u0431\u043b\u0456\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 root \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c, \u0442\u0430\u043a\u0438\u0445 \u044f\u043a \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f. \u0417\u0430\u043c\u0456\u0441\u0442\u044c \u0446\u044c\u043e\u0433\u043e \u0432\u043e\u043d\u0438 \u043c\u043e\u0433\u043b\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 sudo, \u0449\u043e\u0431 \u0442\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u043e \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0456 \u043f\u0440\u0430\u0432\u0430 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n\n\n\n<p>\u0417 <strong>sudo<\/strong> \u043c\u043e\u0436\u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044e\u0432\u0430\u0442\u0438, \u0445\u0442\u043e \u0456 \u044f\u043a\u0456 \u0434\u0456\u0457 \u043c\u043e\u0436\u0435 \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0456. \u041a\u043e\u043b\u0438 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043d\u0430\u043c\u0430\u0433\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u044f\u043a\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0454 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u0445 \u043f\u0440\u0438\u0432\u0456\u043b\u0435\u0457\u0432, \u0432\u0456\u043d \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0432\u0456\u0439 \u043f\u0430\u0440\u043e\u043b\u044c, \u0456 \u044f\u043a\u0449\u043e \u0432\u0441\u0435 \u0437\u0440\u043e\u0431\u043b\u0435\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f.&nbsp;<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0437\u0430\u043c\u0456\u0441\u0442\u044c \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u0441\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0432\u0445\u043e\u0434\u0438\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u043a root \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e su, \u0430 \u043f\u043e\u0442\u0456\u043c \u0432\u0438\u043a\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 update \u0442\u0430 upgrade \u0432 Ubuntu, \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043c\u043e\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update &amp;&amp; sudo apt-get upgrade -y<\/code><\/pre>\n\n\n\n<p>\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 apt-get \u0447\u0435\u0440\u0435\u0437 sudo, \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u043e\u0442\u0440\u0438\u043c\u0443\u0454 \u0442\u0438\u043c\u0447\u0430\u0441\u043e\u0432\u0456 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0456 \u043f\u0440\u0430\u0432\u0430 \u0456 \u043c\u043e\u0436\u0435 \u0443\u0441\u043f\u0456\u0448\u043d\u043e \u0432\u0438\u043a\u043e\u043d\u0430\u0442\u0438 \u0446\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438. \u0426\u0435 \u043d\u0435 \u043b\u0438\u0448\u0435 \u043f\u0456\u0434\u0432\u0438\u0449\u0443\u0454 \u0431\u0435\u0437\u043f\u0435\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0438, \u0430\u043b\u0435 \u0439 \u0440\u043e\u0431\u0438\u0442\u044c \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0431\u0456\u043b\u044c\u0448 \u0437\u0440\u0443\u0447\u043d\u0438\u043c \u0456 \u043a\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u043c. \u0410 \u044f\u043a\u0449\u043e \u0442\u043e\u0431\u0456 \u0446\u0456\u043a\u0430\u0432\u043e \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044c \u0431\u0456\u043b\u044c\u0448\u0435 \u043f\u0440\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043d\u0430\u0448\u0443 \u0441\u0442\u0430\u0442\u0442\u044e <a href=\"https:\/\/itedu.center\/ua\/blog\/articles\/sudo_linux\/\" target=\"_blank\" rel=\"noopener\" title=\"\" data-wpel-link=\"internal\">\u00ab5 \u043f\u0440\u0438\u0447\u0438\u043d \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 sudo\u00bb<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u042f\u043a \u0431\u0443\u0442\u0438 \u0437 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c\u0438, \u044f\u043a\u0456 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442\u044c \u0434\u043e \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432?<\/h2>\n\n\n\n<p>\u0429\u043e\u0431 \u043d\u0430\u0434\u0430\u0442\u0438 \u043f\u0440\u0430\u0432\u0430 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c, \u044f\u043a\u0456 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442\u044c \u0434\u043e \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432, \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043e\u0434\u0430\u0442\u0438 \u0457\u0445 \u0434\u043e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e\u0457 \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432. \u0423 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 Ubuntu \u0446\u0435 \u0433\u0440\u0443\u043f\u0430 <strong>sudo<\/strong>, \u0442\u043e\u0434\u0456 \u044f\u043a \u0443 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 Red Hat, \u0442\u0430\u043a\u0438\u0445 \u044f\u043a Fedora, \u0446\u044f \u0433\u0440\u0443\u043f\u0430 \u043d\u0430\u0437\u0438\u0432\u0430\u0454\u0442\u044c\u0441\u044f <strong>wheel<\/strong>.&nbsp;<\/p>\n\n\n\n<p>\u042f\u043a\u0449\u043e \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447, \u044f\u043a\u0438\u0439 \u043d\u0435 \u0454 \u0447\u043b\u0435\u043d\u043e\u043c \u0446\u0438\u0445 \u0433\u0440\u0443\u043f, \u0430\u043b\u0435 \u0441\u043f\u0440\u043e\u0431\u0443\u0454 \u0432\u0438\u043a\u043e\u043d\u0430\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0437 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f\u043c <strong>sudo<\/strong>, \u0432\u0456\u043d \u043e\u0442\u0440\u0438\u043c\u0430\u0454 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f \u043f\u0440\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0443:<\/p>\n\n\n\n<p><strong>user is not in the sudoers file. This incident will be reported<\/strong><\/p>\n\n\n\n<p>\u0429\u043e\u0431 \u0432\u0438\u0440\u0456\u0448\u0438\u0442\u0435 \u0446\u0435, \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043e\u0434\u0430\u0442\u0438 \u0434\u043e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u043e\u0457 \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 Ubuntu \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -aG sudo USER<\/code><\/pre>\n\n\n\n<p>\u0434\u0435 <strong>USER<\/strong> \u2014 \u0446\u0435 \u0456\u043c&#8217;\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430, \u044f\u043a\u043e\u043c\u0443 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043d\u0430\u0434\u0430\u0442\u0438 \u043f\u0440\u0430\u0432\u0430.\u00a0<\/p>\n\n\n\n<p>\u0423 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 Red Hat \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0431\u0443\u0434\u0435 \u0442\u0430\u043a\u043e\u044e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -aG wheel USER<\/code><\/pre>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0446\u0456\u0454\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0435\u0432\u0456 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0430\u0431\u043e \u0432\u0438\u0439\u0442\u0438 \u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u0438 \u0442\u0430 \u0443\u0432\u0456\u0439\u0442\u0438 \u0437\u043d\u043e\u0432\u0443, \u0430\u0431\u043e \u043e\u043d\u043e\u0432\u0438\u0442\u0438 \u0433\u0440\u0443\u043f\u043e\u0432\u0456 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0438:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newgrp<\/code><\/pre>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0434\u043e\u0434\u0430\u0432\u0430\u043d\u043d\u044f \u0434\u043e \u0433\u0440\u0443\u043f\u0438 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0456\u0432, \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437\u043c\u043e\u0436\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>sudo<\/strong> \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0437\u0430\u0434\u0430\u0447, \u044f\u043a\u0456 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u044c \u043f\u0440\u0438\u0432\u0456\u043b\u0435\u0457\u0432 \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430. \u0426\u0435 \u043f\u0456\u0434\u0432\u0438\u0449\u0443\u0454 \u0431\u0435\u0437\u043f\u0435\u043a\u0443 \u0456 \u0437\u0440\u0443\u0447\u043d\u0456\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0438, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0443\u043d\u0438\u043a\u043d\u0443\u0442\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u043e\u0431\u043b\u0456\u043a\u043e\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0443 <strong>root<\/strong>, \u044f\u043a\u0438\u0439 \u043c\u043e\u0436\u0435 \u0441\u0442\u0430\u0442\u0438 \u0441\u0435\u0440\u0439\u043e\u0437\u043d\u043e\u044e \u0432\u0440\u0430\u0437\u043b\u0438\u0432\u0456\u0441\u0442\u044e \u0437 \u043f\u043e\u0433\u043b\u044f\u0434\u0443 \u0431\u0435\u0437\u043f\u0435\u043a\u0438, \u0456 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u0435\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0456\u043d\u043d\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u0434\u043e \u0430\u0434\u043c\u0456\u043d\u0456\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u0438\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c.<\/p>\n\n\n\n<p><strong>\u0429\u043e\u0431 \u043d\u0430\u0432\u0447\u0438\u0442\u0438\u0441\u044c \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438 \u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 Linux \u0442\u0430 \u0440\u0456\u0432\u043d\u044f\u043c\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0443, \u0437\u0430\u043f\u0440\u043e\u0448\u0443\u0454\u043c\u043e \u0434\u043e \u043d\u0430\u0441 \u043d\u0430 2-\u0442\u0438\u0436\u043d\u0435\u0432\u0438\u0439 \u043a\u0443\u0440\u0441<\/strong><a href=\"https:\/\/itedu.center\/ua\/courses\/administruvannia-linux-dlia-novachkiv\/?utm_source=blog&amp;utm_medium=referral&amp;utm_campaign=blog_article_Shcho_take_sudo_v_Linux%3F\" target=\"_blank\" rel=\"noopener\" title=\"\" data-wpel-link=\"internal\"><strong> Linux \u0434\u043b\u044f \u043d\u043e\u0432\u0430\u0447\u043a\u0456\u0432.<\/strong><\/a><strong>\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430 \u043f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u0435\u0442\u0430\u043f\u0430\u0445 \u0440\u043e\u0437\u0432\u0438\u0442\u043a\u0443 Linux \u0432\u0441\u0435 \u0431\u0443\u043b\u043e \u0437\u043d\u0430\u0447\u043d\u043e \u0441\u043a\u043b\u0430\u0434\u043d\u0456\u0448\u0435. \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0438 \u0431\u0443\u043b\u0438 \u043c\u0435\u043d\u0448 \u0437\u0440\u0456\u043b\u0438\u043c\u0438, \u0456 \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c \u0431\u0443\u0432 \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0438\u0439 \u043e\u0431\u043b\u0456\u043a\u043e\u0432\u0438\u0439 \u0437\u0430\u043f\u0438\u0441 \u2014 root. \u0412\u0456\u043d \u043d\u0430\u0434\u0430\u0432\u0430\u0432 \u043f\u043e\u0432\u043d\u0438\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u0439\u043d\u043e\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u044e.&nbsp; \u0406\u043d\u043e\u0434\u0456 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u0440\u043e\u0437\u0456\u0433\u0440\u0430\u0442\u0438 \u043d\u0435\u0434\u043e\u0441\u0432\u0456\u0434\u0447\u0435\u043d\u0438\u0445 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0432\u0448\u0438 \u0457\u0445 \u0443\u0432\u0456\u0439\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u044f\u043a root \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0438 su, \u0430 \u043f\u043e\u0442\u0456\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rm &#8211; rf \/.&nbsp; \u041a\u043e\u043c\u0430\u043d\u0434\u0430 rm&hellip;<\/p>\n","protected":false},"author":4,"featured_media":36533,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[351,2],"tags":[15,167],"class_list":["post-36529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-sysadministration","tag-linux","tag-sudo"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"uk","enabled_languages":["uk"],"languages":{"uk":{"title":true,"content":true,"excerpt":false}}},"acf":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/36529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/comments?post=36529"}],"version-history":[{"count":4,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/36529\/revisions"}],"predecessor-version":[{"id":36536,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/posts\/36529\/revisions\/36536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media\/36533"}],"wp:attachment":[{"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/media?parent=36529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/categories?post=36529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itedu.center\/ua\/blog\/wp-json\/wp\/v2\/tags?post=36529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}