# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
;hosts allow = IP ;限制IP
security = user
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
valid users = MYDOMAIN\%S
[public]
comment = Public Stuff
path = /share
public = yes
[whatever]
comment = whatever
path = /
writable = yes
browseable = yes
valid users = @usr_name ; linux系统中的用户
;guest ok = yes
create mask = 0777
directory mask = 0777
启动后可以看到名称为whatever的文件夹,就是linux的根目录/