挂载远程共享文件夹
我们一般访问局域网的资源都是用smb的,其实是能把远程共享的文件夹mount到本地的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, utf8)
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
这是例子
# mount -t smbfs-o uname=bird1,password=bird1 //192.168.127.177/share /mnt/smb
然后我们在/mnt/smb能看到//192.168.127.177/share上的文件
# ls -ll /mnt/smb
total 8
drwxr-xr-x 1 root root 40963月 19 18:53 SUPER
drwxr-xr-x 1 root root 40963月4 22:05 win98
不知道这个对大家有没有用 是不是公社的bbs过滤了某些字符?
怎么输入username变成了uname?
上面的uname是username
页:
[1]