{"id":4016,"date":"2021-08-30T16:30:28","date_gmt":"2021-08-30T08:30:28","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=4016"},"modified":"2021-08-30T16:30:42","modified_gmt":"2021-08-30T08:30:42","slug":"linux-mount-smb%e5%85%b1%e4%ba%ab%e6%96%87%e4%bb%b6%e5%a4%b9","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=4016","title":{"rendered":"Linux mount smb\u5171\u4eab\u6587\u4ef6\u5939"},"content":{"rendered":"<h2>Linux mount smb\u5171\u4eab\u6587\u4ef6\u5939<\/h2>\n<h3>\u5b89\u88c5cifs-utils\u5de5\u5177<\/h3>\n<pre><code>apt install cifs-utils\nmkdir \/mnt\/nfs<\/code><\/pre>\n<h3>\u4f7f\u7528smbclient\u5de5\u5177\u67e5\u8be2\u5171\u4eab\u76ee\u5f55<\/h3>\n<pre><code>smbclient -L 192.168.31.254\n\nroot@router:\/mnt# smbclient -L 192.168.31.254\nEnter WORKGROUP\\liang&#039;s password: \n\n        Sharename       Type      Comment\n        ---------       ----      -------\n        thinkpad        Disk\n        IPC$            IPC       IPC Service (Share from router)\n\nReconnecting with SMB1 for workgroup listing.\n        Server               Comment\n        ---------            -------\n        Workgroup            Master\n        ---------            -------\n        WORKGROUP            LIANG-MIWIFI\n<\/code><\/pre>\n<h3>\u533f\u540d\u6302\u8f7d<\/h3>\n<pre><code>mount.cifs \/\/192.168.31.254\/thinkpad \/mnt\/nfs<\/code><\/pre>\n<h3>guest\u6302\u8f7d<\/h3>\n<pre><code>mount -t cifs \/\/192.168.31.254\/thinkpad \/mnt\/nfs\/ -o guest<\/code><\/pre>\n<h3>\u6307\u5b9a\u7528\u6237\u6302\u8f7d<\/h3>\n<pre><code>mount -t cifs -o username=administrator,password=123 \/\/192.168.31.254\/thinkpad \/mnt\/nfs<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux mount smb\u5171\u4eab\u6587\u4ef6\u5939 \u5b89\u88c5cifs-utils\u5de5\u5177 apt install cifs-utils mkdir \/mnt\/nfs \u4f7f\u7528smbclient\u5de5\u5177\u67e5\u8be2\u5171\u4eab\u76ee\u5f55 smbcli&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-4016","post","type-post","status-publish","format-standard","hentry","category-linux-gnu"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4016"}],"version-history":[{"count":3,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4016\/revisions"}],"predecessor-version":[{"id":4019,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/4016\/revisions\/4019"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}