{"id":96,"date":"2006-07-29T20:12:09","date_gmt":"2006-07-29T12:12:09","guid":{"rendered":"http:\/\/twycf.com\/wordpress\/archives\/96"},"modified":"2006-07-29T20:12:50","modified_gmt":"2006-07-29T12:12:50","slug":"samba-%e8%a8%ad%e5%ae%9a%e6%aa%94%e8%ae%8a%e6%95%b8%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/twycf.com\/?p=96","title":{"rendered":"Samba \u8a2d\u5b9a\u6a94\u8b8a\u6578\u5217\u8868"},"content":{"rendered":"<p>\u4ee5\u4e0b\u8cc7\u6599\u7531  <a href=\"http:\/\/us2.samba.org\/samba\/docs\/man\/manpages-3\/smb.conf.5.html\">Samba \u7dda\u4e0a\u6587\u4ef6<\/a>\u6458\u9304<!--more--><\/p>\n<p>%U<br \/>\nsession username (the username that the client wanted, not necessarily the same as the one they got).<\/p>\n<p>%G<br \/>\nprimary group name of %U.<\/p>\n<p>%h<br \/>\nthe Internet hostname that Samba is running on.<\/p>\n<p>%m<br \/>\nthe NetBIOS name of the client machine (very useful).<\/p>\n<p>This parameter is not available when Samba listens on port 445, as clients no longer send this information. If you use this macro in an include statement on a domain that has a Samba domain controller be sure to set in the [global] section smb ports = 139. This will cause Samba to not listen on port 445 and will permit include functionality to function as it did with Samba 2.x. <\/p>\n<p>%L<br \/>\nthe NetBIOS name of the server. This allows you to change your config based on what the client calls you. Your server can have a \u300cdual personality\u300d. <\/p>\n<p>%M<br \/>\nthe Internet name of the client machine. <\/p>\n<p>%R<br \/>\nthe selected protocol level after protocol negotiation. It can be one of CORE, COREPLUS, LANMAN1, LANMAN2 or NT1.<\/p>\n<p>%d<br \/>\nthe process id of the current server process.<\/p>\n<p>%a<br \/>\nthe architecture of the remote machine. It currently recognizes Samba (Samba), the Linux CIFS file system (CIFSFS), OS\/2, (OS2), Windows for Workgroups (WfWg), Windows 9x\/ME (Win95), Windows NT (WinNT), Windows 2000 (Win2K), Windows XP (WinXP), and Windows 2003 (Win2K3). Anything else will be known as UNKNOWN.<\/p>\n<p>%I<br \/>\nthe IP address of the client machine.<\/p>\n<p>%i<br \/>\nthe local IP address to which a client connected.<\/p>\n<p>%T<br \/>\nthe current date and time.<\/p>\n<p>%D<br \/>\nname of the domain or workgroup of the current user.<\/p>\n<p>%w<br \/>\nthe winbind separator.<\/p>\n<p>%$(envvar)<br \/>\nthe value of the environment variable envar.<\/p>\n<p>The following substitutes apply only to some configuration options (only those that are used when a connection has been established): <\/p>\n<p>%S<br \/>\nthe name of the current service, if any.<\/p>\n<p>%P<br \/>\nthe root directory of the current service, if any.<\/p>\n<p>%u<br \/>\nusername of the current service, if any.<\/p>\n<p>%g<br \/>\nprimary group name of %u.<\/p>\n<p>%H<br \/>\nthe home directory of the user given by %u.<\/p>\n<p>%N<br \/>\nthe name of your NIS home directory server. This is obtained from your NIS auto.map entry. If you have not compiled Samba with the &#8211;with-automount option, this value will be the same as %L.<\/p>\n<p>%p<br \/>\nthe path of the service&#8217;s home directory, obtained from your NIS auto.map entry. The NIS auto.map entry is split up as %N:%p.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u8cc7\u6599\u7531 Samba \u7dda\u4e0a\u6587\u4ef6\u6458\u9304<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":0,"href":"https:\/\/twycf.com\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twycf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}