{"id":462,"date":"2026-07-03T03:23:45","date_gmt":"2026-07-02T18:23:45","guid":{"rendered":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/462"},"modified":"2026-07-03T03:25:53","modified_gmt":"2026-07-02T18:25:53","slug":"namei%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/462","title":{"rendered":"namei\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>namei\u306f\u3001\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u304c\u3069\u306e\u3088\u3046\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30c4\u30ea\u30fc\u3092\u305f\u3069\u3063\u3066\u89e3\u6c7a\u3055\u308c\u308b\u304b\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306b\u8868\u793a\u3059\u308bLinux\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u4e3b\u306b\u30d1\u30b9\u306e\u554f\u984c\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h2>\u57fa\u672c\u69cb\u6587<\/h2>\n<pre><code>namei [-m] [-l] [-v] [-x] \u30d1\u30b9<\/code><\/pre>\n<p>\u4e3b\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>-m<\/strong>\uff1a\u5404\u30b9\u30c6\u30c3\u30d7\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u8868\u793a<\/li>\n<li><strong>-l<\/strong>\uff1a\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u305f\u3069\u3089\u305a\u306b\u305d\u306e\u307e\u307e\u8868\u793a<\/li>\n<li><strong>-v<\/strong>\uff1a\u8a73\u7d30\u60c5\u5831\u3092\u5197\u9577\u306b\u51fa\u529b<\/li>\n<li><strong>-x<\/strong>\uff1a\u3059\u3079\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5c55\u958b\u3057\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3082\u518d\u5e30\u7684\u306b\u305f\u3069\u308b<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u4f8b<\/h2>\n<h3>1. \u30b7\u30f3\u30d7\u30eb\u306a\u30d1\u30b9\u306e\u89e3\u6790<\/h3>\n<pre><code>$ namei \/usr\/local\/bin\/python3\n\/usr\n `-- local\n     `-- bin\n         `-- python3<\/code><\/pre>\n<p>\u4e0a\u8a18\u306f\u3001<code>\/usr\/local\/bin\/python3<\/code> \u304c <code>\/usr<\/code> \u2192 <code>local<\/code> \u2192 <code>bin<\/code> \u2192 <code>python3<\/code> \u3068\u9806\u306b\u305f\u3069\u3089\u308c\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>2. \u30a2\u30af\u30bb\u30b9\u6a29\u3092\u8868\u793a<\/h3>\n<pre><code>$ namei -m \/etc\/passwd\nf: \/etc\/passwd\n drwxr-xr-x root root \/   \n drwxr-xr-x root root etc \n -rw-r--r-- root root passwd<\/code><\/pre>\n<p>\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u6700\u7d42\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u78ba\u8a8d<\/h3>\n<pre><code>$ namei -l \/usr\/bin\/python\n\/usr\n `-- bin\n     `-- python -> python3\n         `-- python3 -> \/usr\/local\/bin\/python3.10<\/code><\/pre>\n<p>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u3069\u3053\u3092\u6307\u3057\u3066\u3044\u308b\u304b\u3092\u8996\u899a\u7684\u306b\u628a\u63e1\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u306e\u6d3b\u7528\u4f8b<\/h2>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3001\u307e\u305f\u306f\u6a29\u9650\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u3001<code>namei<\/code>\u3067\u30d1\u30b9\u306e\u5404\u8981\u7d20\u306e\u6a29\u9650\u3084\u30ea\u30f3\u30af\u5148\u3092\u78ba\u8a8d\u3059\u308b\u3068\u539f\u56e0\u7279\u5b9a\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d1\u30b9\u306e\u9014\u4e2d\u3067 <code>Permission denied<\/code> \u304c\u51fa\u305f\u3089\u3001\u8a72\u5f53\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6a29\u9650\u3092\u4fee\u6b63\u3059\u308b\u3002<\/li>\n<li>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u58ca\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30ea\u30f3\u30af\u5148\u304c\u6b63\u3057\u3044\u304b <code>-l<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30ea\u30f3\u30af\u3092\u518d\u4f5c\u6210\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>namei\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u304c\u3089\u3001\u30d1\u30b9\u89e3\u6c7a\u306e\u904e\u7a0b\u3092\u53ef\u8996\u5316\u3067\u304d\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u3084\u6a29\u9650\u30c1\u30a7\u30c3\u30af\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306e\u8ffd\u8de1\u306b\u305c\u3072\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 namei\u306f\u3001\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u304c\u3069\u306e\u3088\u3046\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30c4\u30ea\u30fc\u3092\u305f\u3069\u3063\u3066\u89e3\u6c7a\u3055\u308c\u308b\u304b\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306b\u8868\u793a\u3059\u308bLinux\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u4e3b\u306b\u30d1\u30b9\u306e\u554f\u984c\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059\u3002 \u57fa\u672c\u69cb\u6587 namei [-m] [-l]  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":1,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"predecessor-version":[{"id":465,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/462\/revisions\/465"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}