How to share Samba Home Directory?

Issues related to applications and software problems
Post Reply
WeatherReport
Posts: 5
Joined: 2019/11/19 05:55:00

How to share Samba Home Directory?

Post by WeatherReport » 2019/11/21 16:38:29

I want my user to have access to User home directory from their machine, so i create homes function in smb.conf to achieve but it didn't work, so far homes can display the user private folder but everytime i try to access it, it gives me 0x80070043,

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
here is the full version

https://hastebin.com/ivonojilaw.coffeescript

and there is another problem

Image

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.

ancientnoise
Posts: 58
Joined: 2017/02/20 01:36:15

Re: How to share Samba Home Directory?

Post by ancientnoise » 2019/11/26 12:27:24

Take this out:

path = \\filesharesamba\%S

Then restart.

Post Reply