Ubuntu挂载samba共享目录

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


Usage:  mount.cifs -o

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

Options:
    user=
    pass=
    dom=

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

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

Rarely used options:
    port=,rsize=,wsize=,unc=,ip=,
    dev,nodev,nouser_xattr,netbiosname=,hard,soft,intr,
    nointr,ignorecase,noposixpaths,noacl,prefixpath=,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

你可能感兴趣的:(Linux)