other languages
SMBMOUNT(8) | SMBMOUNT(8) |
NAME¶
smbmount - 裝載一個 smbfs 檔案系統總覽 SYNOPSIS¶
smbmount {service} {mount-point} [-o options]描述 DESCRIPTION¶
smbmount 可以裝載一個Linux SMB檔案系統。它通常在帶 "-t smbfs" 選項執行 mount(8) 命令時被作為 mount.smbfs執行。當然核心必須支持smbfs檔案系統。選項 OPTIONS¶
- username=<arg>
- 指定聯接時的使用者名。如果不指定,程式會用USER這個環境變量。這個選項也接受"user%password",
"user/workgroup"或"user/workgroup%password"形式的參數,允許密碼和工作組作為使用者名的一部分同時被指定。
- password=<arg>
- 指定SMB口令。如果不指定,將使用環境變量PASSWD.
如果沒有指定,也沒有環境變量,
smbmount會提示輸入口令,除非使用了guest選項。
- credentials=<filename>
- specifies a file that contains a username and/or password.
The format of the file is:
username = <value> password = <value>
- krb
- Use kerberos (Active Directory).
- netbiosname=<arg>
- 設定源NetBIOS主機名。預設是本機名。
- uid=<arg>
- 設定裝載的檔案系統的使用者標識符。可以用使用者名或者UID數字兩種辦法來指定。
- gid=<arg>
- 設定裝載的檔案系統的組標識符。可以用組名或者GID數字兩種方法來指定。
- port=<arg>
- 設定遠程SMB系統的端口號。預設是139。
- fmask=<arg>
- 設定檔案掩碼。這決定了本地檔案系統中遠程檔案的權限。它不是掩碼而是實際的檔案權限。預設值是根據當前的umask算出來的。
- dmask=<arg>
- 設定目錄掩碼。這決定了本地檔案系統中遠程目錄的權限。它不是掩碼而是實際的目錄權限。預設值是根據當前的umask算出來的。
- debug=<arg>
- 設定調試等級。對於跟蹤SMB的聯接問題非常有用。
建議的值是4.
如果設置得過高,會產生大量輸出,可能會掩蓋有用的輸出。
- ip=<arg>
- 設定目標主機或IP地址。
- workgroup=<arg>
- 設定目的工作組。
- sockopt=<arg>
- 設定TCP套接字的一些選項。參見smb.conf(5)配置檔案中的socket
options選項。
- scope=<arg>
- 設定NetBIOS范圍。
- guest
- 不提示口令
- ro
- 以只讀方式裝載。
- rw
- 以讀寫方式裝載。
- iocharset=<arg>
- sets the charset used by the Linux side for codepage to
charset translations (NLS). Argument should be the name of a charset, like
iso8859-1. (Note: only kernel 2.4.0 or later)
- codepage=<arg>
- sets the codepage the server uses. See the iocharset
option. Example value cp850. (Note: only kernel 2.4.0 or later)
- ttl=<arg>
- sets how long a directory listing is cached in milliseconds
(also affects visibility of file size and date changes). A higher value
means that changes on the server take longer to be noticed but it can give
better performance on large directories, especially over long distances.
Default is 1000ms but something like 10000ms (10 seconds) is probably more
reasonable in many cases. (Note: only kernel 2.4.2 or later)
ENVIRONMENT VARIABLES¶
The variable USER may contain the username of the person using the client. This information is used only if the protocol level is high enough to support session-level passwords. The variable can be used to set both username and password by using the format username%password.BUGS¶
Passwords and other options containing , can not be handled. For passwords an alternative way of passing them is in a credentials file or in the PASSWD environment.- •
- Mounts sometimes stop working. This is usually caused by
smbmount terminating. Since smbfs needs smbmount to reconnect when the
server disconnects, the mount will eventually go dead. An umount/mount
normally fixes this. At least 2 ways to trigger this bug are known.