{"id":271,"date":"2016-08-09T17:22:59","date_gmt":"2016-08-09T09:22:59","guid":{"rendered":"https:\/\/yyshell.com\/?p=271"},"modified":"2016-08-17T16:53:57","modified_gmt":"2016-08-17T08:53:57","slug":"linux-acl%e6%9d%83%e9%99%90%e8%ae%be%e7%bd%ae%e6%95%99%e7%a8%8bgetfaclsetfacl%e7%9a%84%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/yyshell.com\/?p=271","title":{"rendered":"Linux ACL\u6743\u9650\u8bbe\u7f6e\u6559\u7a0b(getfacl,setfacl\u7684\u4f7f\u7528)"},"content":{"rendered":"<p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5982\u679c\u6709\u8fd9\u6837\u4e00\u4e2a\u6587\u4ef6\uff0c\u6216\u8005\u8bf4\u6587\u4ef6\u5939\uff0c\u5bf9\u5e94\u7684owner\u5c5e\u4e8eA\uff0c\u5bf9\u5e94\u7684group\u5c5e\u4e8eB\uff0c\u90a3\u4e48\u5982\u4f55\u8ba9\u4e00\u4e2a\u65e2\u4e0d\u662f\u7528\u6237A\uff0c\u53c8\u4e0d\u5728group B\u7684\u4eba\u8bbf\u95ee\u3001\u8bfb\u5199\u8fd9\u4e2a\u6587\u4ef6\u3001\u6587\u4ef6\u5939\u5462\uff1f\u4f60\u53ef\u80fd\u4f1a\u8bf4\uff0c\u5f00\u653e777\u6743\u9650\uff0c\u90a3\u6211\u53ef\u4ee5\u5f88\u786e\u5b9a\u7684\u544a\u8bc9\u4f60\uff0c\u90a3\u6837\u5f88\u4e0d\u597d\uff0c\u4f1a\u8ba9\u6240\u6709\u4e0d\u76f8\u5e72\u7684\u7528\u6237\u83b7\u53d6\u6240\u6709\u7684\u6743\u9650\u3002\u4e3a\u4e86\u7075\u6d3b\u7684\u914d\u7f6e\u6743\u9650\uff0cacl\uff0c\u5373\u6240\u8c13\u7684\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff0c\u53ef\u4ee5\u7075\u6d3b\u7684\u8fd0\u7528\u8d77\u6765\u3002<br \/>\nLinux\u914d\u7f6eACL\u4e3b\u8981\u6d89\u53ca\u4e24\u6761\u547d\u4ee4\uff0cgetfacl\u548csetfacl\uff0c\u4ece\u5b57\u9762\u610f\u601d\u4f60\u4e5f\u53ef\u4ee5\u770b\u51fa\u6765\uff0c\u4e00\u4e2a\u662f\u67e5\u770bacl\u6743\u9650\u7684\uff0c\u4e00\u4e2a\u662f\u8bbe\u7f6eacl\u6743\u9650\u7684\uff0c\u5206\u5de5\u660e\u786e\u3002<\/p>\n<p>\u5148\u770b\u4e00\u4e0bgetfacl\u7684\u4f7f\u7528\uff1a<\/p>\n<p>getfacl -h<\/p>\n<blockquote><p>Usage: getfacl [-aceEsRLPtpndvh] file &#8230;<br \/>\n-a,\u00a0 &#8211;access\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 display the file access control list only<br \/>\n-d, &#8211;default\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 display the default access control list only<br \/>\n-c, &#8211;omit-header\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do not display the comment header<br \/>\n-e, &#8211;all-effective\u00a0\u00a0\u00a0\u00a0 print all effective rights<br \/>\n-E, &#8211;no-effective\u00a0\u00a0\u00a0\u00a0\u00a0 print no effective rights<br \/>\n-s, &#8211;skip-base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 skip files that only have the base entries<br \/>\n-R, &#8211;recursive\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 recurse into subdirectories<br \/>\n-L, &#8211;logical\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 logical walk, follow symbolic links<br \/>\n-P, &#8211;physical\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 physical walk, do not follow symbolic links<br \/>\n-t, &#8211;tabular\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 use tabular output format<br \/>\n-n, &#8211;numeric\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print numeric user\/group identifiers<br \/>\n-p, &#8211;absolute-names\u00a0\u00a0\u00a0 don&#8217;t strip leading &#8216;\/&#8217; in pathnames<br \/>\n-v, &#8211;version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print version and exit<br \/>\n-h, &#8211;help\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 this help text<\/p><\/blockquote>\n<p>\u901a\u5e38\u7684\u8f93\u5165\u65f6\u8fd9\u6837\u7684\uff1a<\/p>\n<p>The output format of getfacl is as follows:<br \/>\n1:\u00a0 # file: somedir\/<br \/>\n2:\u00a0 # owner: lisa<br \/>\n3:\u00a0 # group: staff<br \/>\n4:\u00a0 # flags: -s-<br \/>\n5:\u00a0 user::rwx<br \/>\n6:\u00a0 user:joe:rwx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #effective:r-x<br \/>\n7:\u00a0 group::rwx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #effective:r-x<br \/>\n8:\u00a0 group:cool:r-x<br \/>\n9:\u00a0 mask::r-x<br \/>\n10:\u00a0 other::r-x<br \/>\n11:\u00a0 default:user::rwx<br \/>\n12:\u00a0 default:user:joe:rwx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #effective:r-x<br \/>\n13:\u00a0 default:group::r-x<br \/>\n14:\u00a0 default:mask::r-x<br \/>\n15:\u00a0 default:other::&#8212;<\/p>\n<p>1,2,3\u663e\u793a\u7684\u662f\u6587\u4ef6\u540d\u53ca\u6240\u5c5e\u7528\u6237\uff0c\u6240\u5c5e\u7ec4\u30024\u663e\u793a\u7684\u662f\u7279\u6b8a\u6743\u9650\uff0c\u5982\u679c\u6b64\u6587\u4ef6\u3001\u76ee\u5f55\u6ca1\u6709\u8bbe\u7f6e\u8fc7\u7279\u6b8a\u6743\u9650\uff0c\u5219\u4e0d\u4f1a\u663e\u793a\u8fd9\u884c\u3002<\/p>\n<p>5,7,10\u663e\u793a\u7684\u662f\u6b64\u6587\u4ef6\u672c\u8eab\u7684\u7528\u6237\u3001\u7ec4\u3001\u548c\u5176\u4ed6\u7684\u6743\u9650\uff0c\u8fd9\u4e09\u6761\u79f0\u4e3a\u57fa\u7840acl\u6761\u76ee\uff08the base ACL entries\uff09\u30026,8\u4e3a\u989d\u5916\u7684\u7528\u6237\u548c\u7ec4\u7684\u76f8\u5e94\u7684acl\u6743\u9650\uff1b9\u4e3a\u6709\u6548\u6743\u9650\uff0c\u8fd9\u6761\u9650\u5236\u4e86\u6240\u6709\u7ec4\u548c\u989d\u5916\u7528\u6237\u7684\u6743\u9650\u8303\u56f4\uff0c\u4e5f\u5c31\u662f\u8bf4\u6240\u6709\u7ec4\u548c\u989d\u5916\u7528\u6237\u7684\u6700\u5927\u6743\u9650\u53ea\u80fd\u662fmask\u7684\u4e00\u4e2a\u5b50\u96c6\uff0c\u4f8b\u5982mask\u6700\u5927\u6743\u9650\u662frx\uff0c\u5219\u6240\u6709\u7ec4\u548c\u989d\u5916\u7528\u6237\u7684\u6743\u9650\u53ea\u80fd\u662f\u5c0f\u4e8e\u7b49\u4e8erx\u7684\uff0c\u5373\u4f7f\u4f60\u8bbe\u5b9a\u4e86rwx\uff0c\u4e5f\u662f\u65e0\u6548\u7684\uff1b11-15\u663e\u793a\u7684\u662f\u76ee\u5f55\u7684\u9ed8\u8ba4\u7684acl\u6743\u9650\uff0c\u8fd9\u4e2a\u9ed8\u8ba4acl\u6743\u9650\u53ea\u9488\u5bf9\u76ee\u5f55\uff0c\u666e\u901a\u6587\u4ef6\u6ca1\u6709\u9ed8\u8ba4acl\u3002<\/p>\n<p>getfacl\u7684\u6700\u540e\u5982\u679c\u662f\u4e00\u4e2a\u6a2a\u6760dash\u201c-\u201d\u7ed3\u5c3e\uff0c\u5219\u8868\u793agetfacl\u4ece\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6\u4e00\u4e2a\u6587\u4ef6\u5217\u8868\u6765\u5c55\u793aacl\u6743\u9650\u3002<br \/>\ngetfacl\u7684\u5934\u4e09\u884c\u5c5e\u4e8e\u57fa\u7840\u6743\u9650\uff0c\u5f88\u591a\u65f6\u5019\u662f\u65e0\u7528\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u7528getfacl &#8211;omit-header \u628a\u8fd9\u4e09\u884c\u5ffd\u7565\u3002<\/p>\n<p>setfacl\u7528\u6cd5\uff1a<\/p>\n<p>setfacl -h<\/p>\n<p>Usage: setfacl [-bkndRLP] { -m|-M|-x|-X &#8230; } file &#8230;<br \/>\n-m, &#8211;modify=acl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 modify the current ACL(s) of file(s)<br \/>\n-M, &#8211;modify-file=file\u00a0 read ACL entries to modify from file<br \/>\n-x, &#8211;remove=acl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 remove entries from the ACL(s) of file(s)<br \/>\n-X, &#8211;remove-file=file\u00a0 read ACL entries to remove from file<br \/>\n-b, &#8211;remove-all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 remove all extended ACL entries<br \/>\n-k, &#8211;remove-default\u00a0\u00a0\u00a0 remove the default ACL<br \/>\n&#8211;set=acl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 set the ACL of file(s), replacing the current ACL<br \/>\n&#8211;set-file=file\u00a0\u00a0\u00a0\u00a0 read ACL entries to set from file<br \/>\n&#8211;mask\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do recalculate the effective rights mask<br \/>\n-n, &#8211;no-mask\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 don&#8217;t recalculate the effective rights mask<br \/>\n-d, &#8211;default\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 operations apply to the default ACL<br \/>\n-R, &#8211;recursive\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 recurse into subdirectories<br \/>\n-L, &#8211;logical\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 logical walk, follow symbolic links<br \/>\n-P, &#8211;physical\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 physical walk, do not follow symbolic links<br \/>\n&#8211;restore=file\u00a0\u00a0\u00a0\u00a0\u00a0 restore ACLs (inverse of `getfacl -R&#8217;)<br \/>\n&#8211;test\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 test mode (ACLs are not modified)<br \/>\n-v, &#8211;version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 print version and exit<br \/>\n-h, &#8211;help\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 this help text<\/p>\n<p>setfacl [-bkndRLPvh] [{-m|-x} acl_spec] [{-M|-X} acl_file] file &#8230;<br \/>\nsetfacl &#8211;restore=file<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cgetfacl\u540e\u9762\u53ef\u4ee5\u8ddf\u4e00\u961f\u7684\u547d\u4ee4\u518d\u63a5\u4e0a\u4e00\u961f\u7684\u76ee\u5f55\uff0c\u4e0d\u662f\u4e00\u6b21\u53ea\u80fd\u6267\u884c\u5355\u4e2a\u76ee\u6807\u7684acl\u8bbe\u7f6e\u3002<\/p>\n<p>-m\u548c-x\u540e\u9762\u63a5\u4e0aacl\u89c4\u5219\uff0c\u591a\u4e2a\u89c4\u5219\u7528\u9017\u53f7\u201c,\u201d\u9694\u5f00\uff0c-M\u548c-X\u4ece\u6587\u4ef6\u6216\u8005\u6807\u51c6\u8f93\u5165\u4e2d\u8bfb\u53d6acl\u89c4\u5219\u3002<\/p>\n<p>&#8211;set \u548c &#8211;set-file\u4f1a\u66ff\u6362\u6587\u4ef6\u548c\u76ee\u5f55\u4e4b\u524d\u7684acl\u89c4\u5219\uff0c-m (&#8211;modify) and -M (&#8211;modify-file)\u7528\u6237\u4fee\u6539acl\u89c4\u5219\uff0c-x (&#8211;remove) and -X (&#8211;remove-file)\u7528\u4e8e\u5220\u9664acl\u89c4\u5219\u3002<\/p>\n<p>\u5728\u73b0\u4ee3\u7684linux\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u53ea\u6709\u6587\u4ef6\u7684\u6240\u6709\u8005\u548croot\u53ef\u4ee5\u8bbe\u7f6e\u5bf9\u5e94\u6587\u4ef6\u7684acl\u3002<\/p>\n<p>\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<p>Granting an additional user read access<br \/>\nsetfacl -m u:lisa:r file<\/p>\n<p>Revoking write access from all groups and all named users (using the effective rights mask)<br \/>\nsetfacl -m m::rx file<\/p>\n<p>Removing a named group entry from a file&#8217;s ACL<br \/>\nsetfacl -x g:staff file<\/p>\n<p>Copying the ACL of one file to another<br \/>\ngetfacl file1 | setfacl &#8211;set-file=- file2<\/p>\n<p>Copying the access ACL into the Default ACL<br \/>\ngetfacl &#8211;access dir | setfacl -d -M- dir<\/p>\n<p>acl\u6743\u9650\u9012\u5f52\u8bbe\u7f6e<\/p>\n<p>\u5f53\u6211\u4eec\u9700\u8981\u5bf9\u5b50\u76ee\u5f55\u8bbe\u7f6e\u76f8\u5e94\u7684acl\u6743\u9650\u65f6\uff0c\u6211\u4eec\u8be5\u600e\u4e48\u505a\u5462\uff0c\u6211\u7684\u601d\u8def\u4e00\u5f00\u59cb\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<p>find -type d -exec setfacl -m u:alice:rwx {} \\;<br \/>\nfind -type f -executable -exec setfacl -m u:alice:rwx {} \\;<br \/>\nfind -type f \\! -executable -exec setfacl -m u:alice:rw {} \\;<\/p>\n<p>\u8fd9\u79cd\u5199\u6cd5\u901a\u5e38\u5728\u4e00\u4e9b\u811a\u672c\u4e2d\u4f7f\u7528\uff0c\u663e\u5f97\u5f88\u590d\u6742\uff0c\u5176\u5b9e\u6211\u4eec\u6709\u66f4\u597d\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>setfacl -R -m u:colleague:rwX .<\/p>\n<p>\u6ce8\u610f\uff0c\u6b64\u5904\u7684\u5927\u5199\u7684X\u8868\u793a\uff0c\u53ea\u6709\u5f53\u76ee\u6807\u662f\u76ee\u5f55\uff0c\u6216\u8005\u6587\u4ef6\u672c\u8eab\u6709\u6267\u884c\u6743\u9650\u662f\uff0c\u624d\u7ed9\u4e88\u6267\u884c\u6743\u9650\uff0c\u666e\u901a\u6587\u4ef6\u4e00\u5f8b\u6ca1\u6709x\u6267\u884c\u6743\u9650\u3002<\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u91cd\u70b9\u8bb2\u4e00\u4e0bACL_MASK\uff0c\u56e0\u4e3a\u8fd9\u662f\u638c\u63e1ACL\u7684\u53e6\u4e00\u4e2a\u5173\u952e\uff0c\u5728Linux file permission\u91cc\u9762\u5927\u5bb6\u90fd\u77e5\u9053\u6bd4\u5982\u5bf9\u4e8erw-rw-r&#8211;\u6765\u8bf4, \u5f53\u4e2d\u7684\u90a3\u4e2arw-\u662f\u6307\u6587\u4ef6\u7ec4\u7684permission. \u4f46\u662f\u5728ACL\u91cc\u9762\u8fd9\u79cd\u60c5\u51b5\u53ea\u662f\u5728ACL_MASK\u4e0d\u5b58\u5728\u7684\u60c5\u51b5\u4e0b\u6210\u7acb\u3002\u5982\u679c\u6587\u4ef6\u6709ACL_MASK\u503c\uff0c\u90a3\u4e48\u5f53\u4e2d\u90a3\u4e2arw-\u4ee3\u8868\u7684\u5c31\u662fmask\u503c\u800c\u4e0d\u518d\u662fgroup permission\u4e86\u3002<\/p>\n<p>\u53e6\u5916mask\u662f\u6307\u5b9a\u989d\u5916\u7528\u6237\u548c\u7ec4\u7684\u6700\u5927\u6743\u9650\u7684\uff0c\u5e76\u4e0d\u662f\u8bf4\u989d\u5916\u7528\u6237\u548c\u7ec4\u4e00\u5b9a\u5c31\u662fmask\u7684\u6743\u9650\uff01<\/p>\n<div>Default ACL\u662f\u6307\u5bf9\u4e8e\u4e00\u4e2a\u76ee\u5f55\u8fdb\u884cDefault ACL\u8bbe\u7f6e\uff0c\u5e76\u4e14\u5728\u6b64\u76ee\u5f55\u4e0b\u5efa\u7acb\u7684\u6587\u4ef6\u90fd\u5c06\u7ee7\u627f\u6b64\u76ee\u5f55\u7684ACL\u3002<\/div>\n<div>setfacl -d -m u:alice:rw file<\/div>\n<div>\u9ed8\u8ba4acl\u4e0d\u662f\u9488\u5bf9\u76f4\u63a5\u5bf9\u8c61\u7684\u6743\u9650\uff0c\u4f8b\u5982\u5bf9\/test\u76ee\u5f55\u5bf9alice\u8bbe\u5b9arwx\u6743\u9650\uff0c\u6307\u7684\u662f\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u5efa\u7acb\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u4ee5\u53ca\u66f4\u4e0b\u7ea7\u7684\u5b50\u76ee\u5f55\u4e0b\uff0calice\u90fd\u53ef\u4ee5\u6709\u76f8\u5e94\u7684rwx\u6743\u9650\uff0c\u4f46\u662f\uff0c\u5728test\u7684\u6839\u76ee\u5f55\uff0calice\u7684acl\u8fd8\u662f\u57fa\u7840\u7684acl\uff0c\u6ca1\u6709\u52a0\u76f8\u5e94\u7684rwx\u89c4\u5219\u4e0a\u53bb\u3002<\/div>\n<div>\u518d\u6b21\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u9ed8\u8ba4acl\u5982\u679c\u662frwx\uff0c\u5bf9\u4e8e\u6587\u4ef6\uff0c\u6587\u4ef6\u7684mask\u4f1a\u81ea\u52a8\u51cf\u53bbx\u6267\u884c\u7684\u6743\u9650\uff0c\u6240\u4ee5\u989d\u5916\u7528\u6237\u548c\u7ec4\u7684\u6709\u6548\u6743\u9650\u4e5f\u4f1a\u88ab\u51cf\u53bbx\u3002<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u5982\u679c\u6709\u8fd9\u6837\u4e00\u4e2a\u6587\u4ef6\uff0c\u6216\u8005\u8bf4\u6587\u4ef6\u5939\uff0c\u5bf9\u5e94\u7684owner\u5c5e\u4e8eA\uff0c\u5bf9<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18,19,17,20],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-linux","tag-acl","tag-getfacl","tag-linux","tag-setfacl"],"_links":{"self":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=271"}],"version-history":[{"count":3,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":298,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/271\/revisions\/298"}],"wp:attachment":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}