{"id":14503,"date":"2023-08-28T07:33:25","date_gmt":"2023-08-27T22:33:25","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=14503"},"modified":"2023-09-10T09:48:50","modified_gmt":"2023-09-10T00:48:50","slug":"debian-12%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e6%99%82%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%83%a6%e3%83%bc%e3%82%b6%e3%82%92sudo%e5%88%a9%e7%94%a8%e5%8f%af","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/14503","title":{"rendered":"Debian 12\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3092sudo\u53ef\u80fd\u306b\u3059\u308b\uff01"},"content":{"rendered":"<p>Debian 12\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3092sudo\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>sudo\u3092\u5229\u7528\u3057\u3066\u307f\u308b\uff01<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3067\u3059\u304c\u3001sudo\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl restart sshd\r\n&#x5B;sudo] password for usradmin: \r\nusradmin is not in the sudoers file.\r\nThis incident has been reported to the administrator.\r\n<\/pre>\n<h2>root\u30e6\u30fc\u30b6\u306b\u30b9\u30a4\u30c3\u30c1\u3059\u308b\uff01<\/h2>\n<p>root\u30e6\u30fc\u30b6\u306b\u30b9\u30a4\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ su -\r\nPassword:\r\n<\/pre>\n<h2>\u30e6\u30fc\u30b6\u3092sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3059\u308b\uff01<\/h2>\n<p>\u30e6\u30fc\u30b6\u3092sudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# sudo gpasswd -a usradmin sudo\r\nAdding user usradmin to group sudo\r\n<\/pre>\n<h2>\u30ed\u30b0\u30a2\u30a6\u30c8\u3059\u308b\uff01<\/h2>\n<p>\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3057\u307e\u3059\u3002<\/p>\n<h2>\u518d\u5ea6sudo\u3092\u5229\u7528\u3057\u3066\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>sudo\u30b3\u30de\u30f3\u30c9\u304c\u5229\u7528\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl restart sshd\r\n&#x5B;sudo] password for usradmin: \r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3092\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001sudo\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306bsudo\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/14292\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian 12\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/08\/eye_debian_04-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian 12\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Debian 12\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian 12\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u3092sudo\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":14974,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[968],"tags":[966,967,667,976,975],"class_list":["post-14503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian-12","tag-debian","tag-debian-12","tag-sudo","tag-976","tag-975"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/14503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=14503"}],"version-history":[{"count":4,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/14503\/revisions"}],"predecessor-version":[{"id":14661,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/14503\/revisions\/14661"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/14974"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=14503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=14503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=14503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}