this is my smb.conf
Code: Select all
#========================== Global Configuration ==============================
[global]
workgroup = WORKGROUP
server string = Samba Server %v
log file = /var/log/samba/log.%m
panic action = /usr/share/samba/panic-action %d
passdb backend = tdbsam
# username map = /etc/samba/smbusers
netbios name = FileShareSamba
security = user
encrypt passwords = true
map to guest = bad user
# local master = yes
# preferred master = yes
force user = giraffe
force group = giraffe
============================ Share Definitions ===============================
[homes]
path = \\filesharesamba\%S
comment = Home Directories
browseable = yes
read only = no
create mask = 0700
directory mask = 0700
valid users = %S
read only = no
https://hastebin.com/ivonojilaw.coffeescript
and there is another problem
why i have both homes and userfolder, i though i will only have one of them and both of them throw the same error when i try to connect? the WIndows username has the same name with the samba user i have in centos so its automatically create userfolder. everytime i connect to samba.
i want to know if there is a way to have short code to create private directory for every user, this is the homes code purpose so i wouldn't have to create hundres line of configuration, if you guys know how to achieve something like this let me know, Thanks.