zoukankan      html  css  js  c++  java
  • Ubuntu挂载samba共享目录

    Ubuntu中现在没有smbfs了,所以smbmount命令也用不了了,现在可以使用mount.cifs命令来挂载。


    Usage:  mount.cifs <remotetarget> <dir> -o <options>

    Mount the remote target, specified as a UNC name, to a local directory.

    Options:
        user=<arg>
        pass=<arg>
        dom=<arg>

    Less commonly used options:
        credentials=<filename>,guest,perm,noperm,setuids,nosetuids,rw,ro,
        sep=<char>,iocharset=<codepage>,suid,nosuid,exec,noexec,serverino,
        mapchars,nomapchars,nolock,servernetbiosname=<SRV_RFC1001NAME>
        directio,nounix,cifsacl,sec=<authentication mechanism>,sign,fsc

    Options not needed for servers supporting CIFS Unix extensions
        (e.g. unneeded for mounts to most Samba versions):
        uid=<uid>,gid=<gid>,dir_mode=<mode>,file_mode=<mode>,sfu

    Rarely used options:
        port=<tcpport>,rsize=<size>,wsize=<size>,unc=<unc_name>,ip=<ip_address>,
        dev,nodev,nouser_xattr,netbiosname=<OUR_RFC1001NAME>,hard,soft,intr,
        nointr,ignorecase,noposixpaths,noacl,prefixpath=<path>,nobrl

    Options are described in more detail in the manual page
        man 8 mount.cifs

    To display the version number of the mount helper:
        mount.cifs -V

    例如:mount.cifs //172.16.202.232/xxxxxx  /work -o user=xxxxxxx

  • 相关阅读:
    LeetCode_222.完全二叉树的节点个数
    LeetCode_219.存在重复元素 II
    LeetCode_217.存在重复元素
    LeetCode_215.数组中的第K个最大元素
    LeetCode_21.合并两个有序链表
    LeetCode_206.反转链表
    LeetCode_205.同构字符串
    LeetCode_202.快乐数
    LeetCode_20.有效的括号
    LeetCode_2.两数相加
  • 原文地址:https://www.cnblogs.com/keanuyaoo/p/3400203.html
Copyright © 2011-2022 走看看