{"id":6,"date":"2017-02-25T13:00:11","date_gmt":"2017-02-25T05:00:11","guid":{"rendered":"\/\/hqidi.com\/?p=6"},"modified":"2017-02-25T13:01:07","modified_gmt":"2017-02-25T05:01:07","slug":"%e5%85%b3%e4%ba%8eumask","status":"publish","type":"post","link":"https:\/\/hqidi.com\/6.html","title":{"rendered":"\u5173\u4e8eumask"},"content":{"rendered":"<p>\/etc\/profile\u91cc\u9762\u7684umask\u5b57\u6bb5<\/p>\n<p># By default, we want umask to get set. This sets it for login shell<br \/>\n# Current threshold for system reserved uid\/gids is 200<br \/>\n# You could check uidgid reservation validity in<br \/>\n# \/usr\/share\/doc\/setup-*\/uidgid file<br \/>\nif [ $UID -gt 199 ] && [ \"`id -gn`\" = \"`id -un`\" ]; then<br \/>\n umask 002<br \/>\nelse<br \/>\n umask 022<br \/>\nfi<\/p>\n<p>   \/etc\/bashrc\u91cc\u9762\u7684umask\u5b57\u6bb5<br \/>\n # By default, we want umask to get set. This sets it for non-login shell.<br \/>\n # Current threshold for system reserved uid\/gids is 200<br \/>\n # You could check uidgid reservation validity in<br \/>\n # \/usr\/share\/doc\/setup-*\/uidgid file<br \/>\n if [ $UID -gt 199 ] && [ \"`id -gn`\" = \"`id -un`\" ]; then<br \/>\n umask 002<br \/>\n else<br \/>\n umask 022<br \/>\n fi<\/p>\n<p>if [ $UID -gt 199 ] && [ \"`id -gn`\" = \"`id -un`\" ]; then<br \/>\n\u5982\u679cUID\u5927\u4e8e199\uff0c\u800c\u4e14\u7528\u6237\u540d\u548c\u7ec4\u540d\u4e00\u6837\uff0c\u5c31\u628aumask\u8bbe\u4e3a002.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/etc\/profile\u91cc\u9762\u7684umask\u5b57\u6bb5 # By default, we want umask to get set. This sets it for login shell # Current threshold for system reserved uid\/gids is 200 # You could check uidgid reserva...<\/p>\n<a class=\"read-more\" href=\"https:\/\/hqidi.com\/6.html\">\u9605\u8bfb\u5168\u6587 &raquo;<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-study"],"_links":{"self":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts\/6"}],"collection":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":2,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":2899,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/posts\/6\/revisions\/2899"}],"wp:attachment":[{"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hqidi.com\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}