{"id":8294,"date":"2023-01-22T08:41:12","date_gmt":"2023-01-21T23:41:12","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=8294"},"modified":"2023-07-20T05:56:13","modified_gmt":"2023-07-19T20:56:13","slug":"linux%e3%81%a7%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%81%ab%e9%96%a2%e3%81%99%e3%82%8b%e6%93%8d%e4%bd%9c%e3%82%92%e8%a1%8c%e3%81%86%ef%bc%81%ef%bc%88passwd%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/8294","title":{"rendered":"Linux\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u95a2\u3059\u308b\u64cd\u4f5c\u3092\u884c\u3046\uff01\uff08passwd\uff0fchpasswd\uff09"},"content":{"rendered":"<p>Linux\u3067passwd\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u95a2\u3059\u308b\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>passwd\u30b3\u30de\u30f3\u30c9\u306e\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3059\u308b\uff01<\/h2>\n<p>passwd\u30b3\u30de\u30f3\u30c9\u306e\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u3066\u3001\u4f7f\u7528\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u4ee5\u5916\u306b\u3001\u5f37\u5236\u7684\u306b\u671f\u9650\u5207\u308c\u306b\u3057\u305f\u308a\u3001\u30ed\u30c3\u30af\u3092\u304b\u3051\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n # passwd --help\r\nUsage: passwd &#x5B;OPTION...] &lt;accountName&gt;\r\n  -k, --keep-tokens       keep non-expired authentication tokens\r\n  -d, --delete            delete the password for the named account (root only); also removes password lock if any\r\n  -l, --lock              lock the password for the named account (root only)\r\n  -u, --unlock            unlock the password for the named account (root only)\r\n  -e, --expire            expire the password for the named account (root only)\r\n  -f, --force             force operation\r\n  -x, --maximum=DAYS      maximum password lifetime (root only)\r\n  -n, --minimum=DAYS      minimum password lifetime (root only)\r\n  -w, --warning=DAYS      number of days warning users receives before password expiration (root only)\r\n  -i, --inactive=DAYS     number of days after password expiration when an account becomes disabled (root only)\r\n  -S, --status            report password status on the named account (root only)\r\n      --stdin             read new tokens from stdin (root only)\r\n\r\nHelp options:\r\n  -?, --help              Show this help message\r\n      --usage             Display brief usage message\r\n<\/pre>\n<h2>\u5bfe\u8a71\u7684\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>\u5bfe\u8a71\u7684\u306a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3092\u884c\u3044\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u30dd\u30ea\u30b7\u30fc\u306b\u5408\u3063\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002root\u30e6\u30fc\u30b6\u3067\u3042\u308c\u3070\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30b3\u30de\u30f3\u30c9\u306b\u30e6\u30fc\u30b6\u540d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u6307\u5b9a\u3057\u305f\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# passwd\r\nChanging password for user root.\r\nNew password: \r\nRetype new password: \r\npasswd: all authentication tokens updated successfully.\r\n<\/pre>\n<h2>\u30d0\u30c3\u30c1\u51e6\u7406\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\uff01\uff08passwd\uff09<\/h2>\n<p>\u6a19\u6e96\u5165\u529b\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# echo &quot;password&quot; | passwd --stdin root\r\n<\/pre>\n<h2>\u30d0\u30c3\u30c1\u51e6\u7406\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3092\u884c\u3046\uff01\uff08chpasswd\uff09<\/h2>\n<p>\u30d0\u30c3\u30c1\u51e6\u7406\u306a\u3069\u3067\u4e00\u62ec\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3092\u884c\u3046\u5834\u5408\u306f\u3001\u300cchpasswd\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f31\u884c\u306e\u4f8b\u3067\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u300c\u30e6\u30fc\u30b6\u540d:\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u306e\u4e00\u89a7\u3092\u4f5c\u6210\u3057\u3066\u3001\u6a19\u6e96\u5165\u529b\u304b\u3089chpasswd\u30b3\u30de\u30f3\u30c9\u306b\u8aad\u307f\u8fbc\u307e\u305b\u308b\u3053\u3068\u3067\u3001\u4e00\u62ec\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u30dd\u30ea\u30b7\u30fc\u306f\u7121\u8996\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# echo &quot;root:password&quot; | chpasswd\r\n<\/pre>\n<h2>\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30b3\u30de\u30f3\u30c9\u3067\u751f\u6210\u3059\u308b\uff01<\/h2>\n<p>\u5f37\u5ea6\u306e\u5f37\u3044\u8907\u96d1\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8003\u3048\u308b\u306e\u304c\u5927\u5909\u306a\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u3067\u81ea\u52d5\u3067\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8284\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"Linux\u3067OS\u30ed\u30b0\u30a4\u30f3\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\uff01(pwmake)\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">Linux\u3067OS\u30ed\u30b0\u30a4\u30f3\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\uff01(pwmake)<\/div><div class=\"substr\">Linux\u3067pwmake\u30b3\u30de\u30f3\u30c9\u3067\u3001OS\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u305f\u3081\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8307\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"Linux\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\uff01\uff08pwgen\uff09\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">Linux\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\uff01\uff08pwgen\uff09<\/div><div class=\"substr\">Linux\u3067pwgen\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3057\u307e\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u30dd\u30ea\u30b7\u30fc\u306f\u3001\u5f15\u6570\u3067\u6307\u5b9a\u3059\u308b\u306e\u3067\u3001\u69d8\u3005\u306a\u7528\u9014\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u300cpasswd\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u95a2\u3059\u308b\u64cd\u4f5c\u3092\u5404\u7a2e\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u306f\u5bfe\u8a71\u7684\u306a\u64cd\u4f5c\u306b\u306a\u308a\u307e\u3059\u3002\u30d0\u30c3\u30c1\u51e6\u7406\u3092\u884c\u3044\u305f\u3044\u3068\u304d\u306f\u3001\u300cchpasswd\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8660\" ><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\u3011Linux\u3067\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u6a29\u9650\u3092\u7ba1\u7406\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3067\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u6a29\u9650\u3092\u7ba1\u7406\u3059\u308b\uff01<\/div><div class=\"substr\">Linux\u306e\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H5qkUu\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source lazyload\" data-src=\"https:\/\/m.media-amazon.com\/images\/I\/51ZPkoBGdZL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067passwd\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u95a2\u3059\u308b\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[188],"tags":[795,282,794,25,401,666,583],"class_list":["post-8294","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-account","tag-chpasswd","tag-linux","tag-passwd","tag-25","tag-401","tag-666","tag-583"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/8294","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=8294"}],"version-history":[{"count":3,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/8294\/revisions"}],"predecessor-version":[{"id":13153,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/8294\/revisions\/13153"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=8294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=8294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=8294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}