Blog文章的打印版本

点击此处查看原始版本

听峰's Blog

smb.conf的一种方便VMWARE的共享设置

第一部分,设置全局变量

代码

dos charset = utf8
unix charset = utf8
hosts allow = 192.168.115.0/255.255.255.0


第二部分,专门开放一个共享目录。

代码

[Shared Folders]
   comment = windows mount dir
   browseable = yes

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
  ;writable = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0022

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0022
   path = /home/user/vmware
   force user = user
   force group = user
   read only = No
   guest ok = Yes


Powered by Invision Community Blog (http://www.invisionblog.com)
© Invision Power Services (http://www.invisionpower.com)