我已经按照步骤在ubuntu上安装samba
http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/
但它没有告诉我如何添加一个目录e,g
/var/www
与窗口用户或macuser分享
示例smb.conf共享部分。
这会为文件夹/opt/Utils创build一个名为“Utilities”的共享。 它提供对用户“用户名”的写入访问权限,拒绝用户“root”的访问权限,读取访客用户和其他人的访问权限。 包括一些示例选项,演示文件和目录创build掩码和文件名的案例处理。
# share name # this is the name of the share shown in Windows share browser and "net view" command [Utilities] # comment shows up in Windows share browser comment = Handy-dandy software repository # path to share path = /opt/Utils # share security -- who can access, who can't, who can write write list = username read only = yes directory mask = 0755 create mask = 0644 guest ok = Yes invalid users = root # filename case options, mostly for Win clients case sensitive = True default case = lower preserve case = yes short preserve case = yes