smbmount |
This program mounts an smbfs filesystem on a mount point in the Unix filesystem. It is typically called as mount.smb from mount , although it can also be run directly by users. After mounting the smbfs filesystem, smbmount continues to run as a daemon as long as the filesystem is mounted. It logs events in the file log.smbmount in the same directory as the other Samba log files (which is commonly /usr/local/samba/var by default). The logging level is controlled by the debug level parameter in the Samba configuration file.
smbmount service mount_point [-o options]
The service argument specifies the SMB share to mount, given as a UNC. The mount_point argument specifies a directory to use as the mount point. The options to smbmount are specified as a comma-separated list of key = value pairs. The documented options are as follows . Others can be passed if the kernel supports them.
Specifies the username to connect as. If this is not provided, the environment variable USER will be tried. The name can be specified as username % password , user / workgroup , or user / workgroup % password .
Specifies the SMB password. If no password is provided using this option, the username option, or the credentials option, the environment variable PASSWD is used. If that also does not exist, smbmount will prompt interactively for a password.
Specifies a file that contains a username and password in the following format:
username = value password = value
Sets the Unix user ID to be used as the owner of all files in the mounted filesystem. It can be specified as a username or numeric UID. Defaults to the UID of the user running smbmount .
Sets the Unix group ID to be used as the group for all files in the mounted filesystem. It can be specified as a group name or a numeric GID. Defaults to the GID of the user running smbmount .
Sets the TCP port number. This is 139, which is required by most Windows versions.
Sets the Unix permissions of all files in the mounted filesystem. Defaults to the user's current umask.
Sets the Unix permissions of all directories in the mounted filesystem. Defaults to the current umask.
Sets the debugging level.
Sets the destination hostname or IP address.
Sets the computer name to connect as. This defaults to the hostname of the local system.
Sets the workgroup or domain.
Sets TCP socket options.
Sets the NetBIOS scope.
Don't expect or prompt for a password.
Mounts the share read-only.
Mounts the share read-write.
Sets the charset used by the Linux machine for codepage-to-charset translation. See also the codepage option.
Sets the DOS code page. See also the iocharset option.
Sets the time to live, in milliseconds, for entries in the directory cache. A higher value gives better performance on large directories and/or slower connections. The default is 1000ms. Try 10000ms (10 seconds) as a starting value if directory operations are visibly slow.