MOUNT_SMBFS(8) | MidnightBSD System Manager's Manual | MOUNT_SMBFS(8) |
mount_smbfs
—
mount a shared resource from an SMB file server
mount_smbfs |
[-E
cs1:cs2]
[-I host]
[-L locale]
[-M
crights:srights]
[-N ] [-O
cowner:cgroup/sowner:sgroup]
[-R retrycount]
[-T timeout]
[-U username]
[-W workgroup]
[-c case]
[-d mode]
[-f mode]
[-g gid]
[-n opt]
[-u uid]
//user@server[:port1[:port2]]/share
node |
The mount_smbfs
command mounts a share
from a remote server using SMB/CIFS protocol.
The options are as follows:
-E
cs1:cs2-I
host-L
localemount_smbfs
tries to use an environment variable
LC_*
to determine it.-M
crights:srights-N
mount_smbfs
reads the
~/.nsmbrc file for additional configuration
parameters and a password. If no password is found,
mount_smbfs
prompts for it.-O
cowner:cgroup/sowner:sgroup-R
retrycount-T
timeout-U
username-W
workgroup-c
case-f
mode, -d
modeNote that these permissions can differ from the rights granted by SMB server.
-u
uid, -g
gidmount_smbfs
command will use
server as the NetBIOS name of remote computer,
user as the remote user name and
share as the resource name on a remote server.
Optional port1 and port2
arguments can be used to override default values of port numbers used by
communication protocols. For SMB over NetBIOS default value for
port1 are 139, and port2 are
137.The following example illustrates how to connect to SMB server SAMBA as user GUEST, and mount shares PUBLIC and TMP:
mount_smbfs -I samba.mydomain.com //guest@samba/public /smb/public mount_smbfs -I 192.168.20.3 -E koi8-r:cp866 //guest@samba/tmp /smb/tmp
It is also possible to use fstab(5) for smbfs mounts (the example below doesn't prompt for a password):
//guest@samba/public /smb/public
smbfs rw,noauto,-N 0 0
Boris Popov ⟨bp@butya.kz⟩, ⟨bp@FreeBSD.org⟩
Please report bugs to the author.
September 17, 2011 | midnightbsd-3.1 |