*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Hide shares owned to other users

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
NathanBiel
NewUser
NewUser
Posts: 3
Joined: 25 Nov 2019 16:51
Status: Offline

Hide shares owned to other users

#1

Post by NathanBiel » 25 Nov 2019 17:11

Hello everyone!
I want to make separate shares of user1 and user2.
I made two folders, changed the owner and permissions.
Everything works well. User user1 only has access to user1 share and user2 to user2 share.
But each user can see both shares. How do I disable viewing unavailable shares for users?
I found a solution that I should add "hide unreadable = yes" and "access based shareenum = yes" in Additional parameters.
But it still doesn't work. All users can see all shares.

Shperrung
experienced User
experienced User
Posts: 107
Joined: 04 Apr 2018 16:29
Status: Offline

Re: Hide shares owned to other users

#2

Post by Shperrung » 26 Nov 2019 04:50

Create for each user his own group and assign them as owner for each folders like

Code: Select all

chown -R user1:user1 /mnt/user1
then change permission to

Code: Select all

chmod -R 700 /mnt/user1
11.2.0.4 - Omnius (revision 6177) embedded -> XigmaNAS 12.0.0.4.6928 RootOnZFS
ASRock J3710-ITX, LAN: Winyao 2 ports; 16Gb RAM; WD 1Tbx2, WD 2Tb; UPS Powercom WOW500U.

NathanBiel
NewUser
NewUser
Posts: 3
Joined: 25 Nov 2019 16:51
Status: Offline

Re: Hide shares owned to other users

#3

Post by NathanBiel » 30 Nov 2019 14:41

Of course I did it. But all users still can see all shares and don't have access to some.

NathanBiel
NewUser
NewUser
Posts: 3
Joined: 25 Nov 2019 16:51
Status: Offline

Re: Hide shares owned to other users

#4

Post by NathanBiel » 30 Nov 2019 17:42

I found a solution.
You need to add to Additional Parameters of samba:
access based share enum = yes
hide unreadable = yes

And also you need to add to Additional Parameters for each share what you have:
valid users = user2, user3, ...

Then share will be visible only if logged in user is on the list.

Post Reply

Return to “CIFS/SMB (Samba)”