{"id":9890,"date":"2019-02-12T19:23:47","date_gmt":"2019-02-12T10:23:47","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9890"},"modified":"2019-02-12T19:31:55","modified_gmt":"2019-02-12T10:31:55","slug":"su-%e3%81%a7%e3%80%8cbash-home-%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e5%90%8d-bashrc%e3%80%8d-%e8%a8%b1%e5%8f%af%e3%81%8c%e3%81%82%e3%82%8a%e3%81%be","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9890","title":{"rendered":"su \u3067\u300cbash: \/home\/\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\/.bashrc:\u300d \u8a31\u53ef\u304c\u3042\u308a\u307e\u305b\u3093\u3068\u8868\u793a\u3055\u308c\u308b\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>CentOS\u3067\u3001su\u30b3\u30de\u30f3\u30c9(\u30e6\u30fc\u30b6\u306e\u5909\u66f4)\u3092\u5b9f\u884c\u3057\u305f\u969b\u306b\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u305f\u30b3\u30de\u30f3\u30c9<br \/>\nsu \u30e6\u30fc\u30b6\u540d<\/p>\n<p>\u8868\u793a\u7d50\u679c<br \/>\nbash: \/home\/\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\/.bashrc: \u8a31\u53ef\u304c\u3042\u308a\u307e\u305b\u3093<\/p>\n<h2>\u539f\u56e0\u3068\u5bfe\u51e6<\/h2>\n<p>\u3044\u308d\u3044\u308d\u3068\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u8a72\u5f53\u306e\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u305d\u306e\u30e6\u30fc\u30b6\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u304c\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u539f\u56e0\u3067\u3057\u305f\u3002<br \/>\n\u4f55\u304b\u306e\u4f5c\u696d\u4e2d\u306b\u3001\u9593\u9055\u3063\u3066\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30aa\u30fc\u30ca\u30fc\u6a29\u9650\u3092\u5909\u66f4\u3057\u3066\u3044\u305f\u304c\u539f\u56e0\u3060\u3063\u305f\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u5bfe\u5fdc\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>cd \/home\/<\/p>\n<p>chown \u30e6\u30fc\u30b6\u540d:\u30e6\u30fc\u30b6\u540d .\/\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/p>\n<p>\u3053\u308c\u306f\u3001\u8a72\u5f53\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30aa\u30fc\u30ca\u30fc\u3068\u30b0\u30eb\u30fc\u30d7\u3092\u305d\u306e\u30e6\u30fc\u30b6\u306b\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u5f8c\u306b\u518d\u5ea6su\u30b3\u30de\u30f3\u30c9\u3067\u8a72\u5f53\u306e\u30e6\u30fc\u30b6\u306b\u5909\u66f4\u3057\u305f\u3068\u3053\u308d\u3001\u554f\u984c\u306a\u304f\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS\u3067\u3001su\u30b3\u30de\u30f3\u30c9(\u30e6\u30fc\u30b6\u306e\u5909\u66f4)\u3092\u5b9f\u884c\u3057\u305f\u969b\u306b\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002 \u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u305f\u30b3\u30de\u30f3\u30c9 su \u30e6\u30fc\u30b6\u540d \u8868\u793a\u7d50\u679c bash: \/home\/\u30e6\u30fc\u30b6\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\/.bashrc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[147,131],"tags":[],"class_list":["post-9890","post","type-post","status-publish","format-standard","hentry","category-linux","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9890"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9890\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}