{"id":1098,"date":"2019-04-25T12:19:02","date_gmt":"2019-04-25T04:19:02","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1098"},"modified":"2019-04-28T12:34:13","modified_gmt":"2019-04-28T04:34:13","slug":"chfn","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chfn","title":{"rendered":"chfn\u547d\u4ee4 – \u7cfb\u7edf\u7ba1\u7406"},"content":{"rendered":"\n

chfn\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u662f\u201cchange finger\u201d\uff0c\u5373\u7528\u6765\u6539\u53d8finger\u547d\u4ee4\u663e\u793a\u7684\u4fe1\u606f\u3002\u8fd9\u4e9b\u4fe1\u606f\u90fd\u5b58\u653e\u5728\/etc\u76ee\u5f55\u91cc\u7684passwd\u6587\u4ef6\u91cc\u3002\u82e5\u4e0d\u6307\u5b9a\u4efb\u4f55\u9009\u9879\uff0c\u5219chfn\u547d\u4ee4\u4f1a\u8fdb\u5165\u95ee\u7b54\u5f0f\u754c\u9762\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> chfn [\u53c2\u6570]
<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570<\/strong>\uff1a<\/p>\n\n\n\n
-f<\/td>\u8bbe\u7f6e\u771f\u5b9e\u59d3\u540d<\/td><\/tr>
-h<\/td>\u8bbe\u7f6e\u5bb6\u4e2d\u7684\u7535\u8bdd\u53f7\u7801<\/td><\/tr>
-u <\/td>\u5728\u7ebf\u5e2e\u52a9<\/td><\/tr>
-v<\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6539\u53d8finger\u4fe1\u606f \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# chfn 
Changing finger information for root.
Name [root]: linuxcool
Office []: cool
Office Phone []: 888888
Home Phone []: 999999
Finger information changed.<\/pre>\n\n\n\n

\u6539\u53d8\u8d26\u53f7\u771f\u5b9e\u59d3\u540d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# chfn -f 
hnunix Changing finger information for root.
Finger information changed.<\/pre>\n","protected":false},"excerpt":{"rendered":"

chfn\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u662f\u201cchange finger\u201d\uff0c\u5373\u7528\u6765\u6539\u53d8finger\u547d\u4ee4\u663e\u793a\u7684\u4fe1\u606f\u3002\u8fd9\u4e9b\u4fe1\u606f\u90fd\u5b58\u653e\u5728 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1098"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1098"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1098\/revisions"}],"predecessor-version":[{"id":1549,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1098\/revisions\/1549"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}