mount -t smbfs [-o options,...]
Options:
uname=<arg> SMB uname
password=<arg> SMB password
credentials=<filename> file with uname/password
netbiosname=<arg> source NetBIOS name
uid=<arg> mount uid or uname
gid=<arg> mount gid or groupname
port=<arg> remote SMB port number
fmask=<arg> file umask
dmask=<arg> directory umask
debug=<arg> debug level
ip=<arg> destination host or IP address
workgroup=<arg> workgroup on destination
sockopt=<arg> TCP socket options
scope=<arg> NetBIOS scope
iocharset=<arg> Linux charset (iso8859-1, utf
codepage=<arg> server codepage (cp850)
ttl=<arg> dircache time to live
guest don't prompt for a password
ro mount read-only
rw mount read-write
这是例子
[root@flasher flasher]# mount -t smbfs -o uname=bird1,password=bird1 //192.168.127.177/share /mnt/smb
然后我们在/mnt/smb能看到//192.168.127.177/share上的文件
[root@flasher flasher]# ls -ll /mnt/smb
total 8
drwxr-xr-x 1 root root 4096 3月 19 18:53 SUPER
drwxr-xr-x 1 root root 4096 3月 4 22:05 win98