This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Samba home directory setup

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
v81
NewUser
NewUser
Posts: 4
Joined: 25 Jan 2015 05:58
Status: Offline

Samba home directory setup

Post by v81 »

Seems no matter how i try i cant get home dirs setup.

The desired outcome is to have 1 main share, accessible from a windows box read only to guests, r/w to authenticated users.
And each user to have a home directory accessible from a windows box r/w, private and not accessibly to other users.
The userdirs are not to be visible in the main share.

I have 1 mount point, /data

I have 1 share, /mnt/data

I have 1 group, Home

I have 2 users
  • user1, Group=Home, Home directory= /mnt/data/user1
  • user2, Group=Home, Home directory= /mnt/data/user2
When browsing the nas as user1 only the data share appears.

How would i go about creating a private storage area and share for each user?


Thanks.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Samba home directory setup

Post by b0ssman »

use the forum search tool

viewtopic.php?t=2277
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

v81
NewUser
NewUser
Posts: 4
Joined: 25 Jan 2015 05:58
Status: Offline

Re: Samba home directory setup

Post by v81 »

b0ssman wrote:use the forum search tool

viewtopic.php?t=2277
You say that as if i haven't already searched.
Pointing me to a closed thread with a lack of information is no help.

I want to share the home dirs, only to the users whom own them, the info in that thread just creates the dirs.
And unless i'm wrong I'd also expect to be able to do it without editing parameters.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Samba home directory setup

Post by b0ssman »

the second post in that thread has the information you need.

its not about creating dirs those are the samba settings.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

v81
NewUser
NewUser
Posts: 4
Joined: 25 Jan 2015 05:58
Status: Offline

Re: Samba home directory setup

Post by v81 »

Ok, have decided to add the required samba settings.
On the surface it appears to work.
Browsing the nas in Windows shows the main share and that users home share.

However if i manually type the path to another user i can gain r/w access to their share.
I'd bet several people have used the same method without realizing it isn't secure, and with only another users name you can gain read/write access to their share.

There must me a better way to do this, maybe create individual shares for each user, but for a large number of users this could become tedious.

Can anyone comment on this, or how i might go about locking down users shares so only the authenticated user can access it?

v81
NewUser
NewUser
Posts: 4
Joined: 25 Jan 2015 05:58
Status: Offline

Re: Samba home directory setup

Post by v81 »

decided to look closer and opened a shell, found that both users folder were owned by 1 of the users.
Correcting this seems to have resolved a few issues, though no sure how it happened in the first place.

Browsing to the other users share now prompts for credentials as expected.

Post Reply

Return to “CIFS/SMB (Samba)”