how to set different user permisions on cif share's

Status
Not open for further replies.

arnoldg

Cadet
Joined
Dec 9, 2012
Messages
5
Hello,

i have several cifs share's now i wan't to set several users per cif share
how can do this.


below an example what i wan't

cifs share 1 : user 1, user 2, user 4
cifs share 2 : user 1, user 3
cifs share 3 : user 2, user 4
 

bertrem

Dabbler
Joined
Feb 19, 2013
Messages
15
I think you can do this by putting each unique combination of users into a group and then making each of those shares the home directory for that group, i.e.:
groupA includes user1,user2,user4 and home dir = share1
groupB includes user1,user3 and home dir = share2
etc.

A bit clunky, but maybe it works.
 

Iman230

Cadet
Joined
Feb 8, 2015
Messages
1
I have this question too, and I try to create groups and Separated zfs Data set and Users to separated them but it not work
when a user login all off cifs can see the shares
is any solution ?
 

Viki Povi

Cadet
Joined
Feb 10, 2015
Messages
4
Hello
I have this problem also, and I have not found a way around it.
Can anyone help us?
I want the easiest permission setup: each user group has a share, the members of the group do not see datas of the other groups.
This can be solved somehow?
Thanks for yous help
 

Viki Povi

Cadet
Joined
Feb 10, 2015
Messages
4
Sorry for the delay. My solution was this:
I created a zfs dataset, for example the name is familyNAS. Important, this dataset permission type is: windows !
Then I created additional datasets under the familyNAS, their names fathersdata, mothersdata, childrensdata etc. These datasets permissions types are: unix.
So here you can adjust the individual shares permission.
So it works for me, everyone can enter your own password-protected sharing only.
I hope I could help you
bye
(I use 9.3 version)
 
Last edited:

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Hello,

I'm using 9.2.1.5 and quite literally ALL I want to do is get CIFS permissions to work like I "think" they should. I have a single user 'bob' in a group 'bob', three datasets 'media', 'backups', 'test'. 'bob' is the owner of 'test' and has full acces but for the life of me I can't restrict his access to the other two (media + backups), I managed to remove his ability to write to the folders but I can't restrict his ability to open/read the folders. It appears the local authentication option is removed from newer builds, something to do with SAMBA issues... Anyway, this should be extremely basic but googling shows a LOT of people having issues with it and all the instructions I can find are out dated or simply don't work.

Any help much appreciated.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Where's the problem?

Assign owners to the relevant datasets, Windows permissions.
Set up sharing for them, CIFS.
From a client machine, log onto the server as the owner of each share/dataset and set the permissions to your liking.
 

Viki Povi

Cadet
Joined
Feb 10, 2015
Messages
4
My solution was this in 9.3 version:
You created a main zfs dataset, for example the name is mainNAS. Important, this dataset permission type is: WINDOWS ! The owner (user): ROOT, the owner (group): WHEEL. Set permission recursively: NO.
Then created additional datasets under the mainNAS, their names media, backups, test or other. These datasets permissions types are: UNIX ! The owner (user): bob, the owner (group): bob. Set permission recursively: NO.
So here you can adjust the individual shares permission, in the mode: Owner and Group every Yes, Other every NO.
Obviously, in the windows shares (cifs) set: apply Default Permissions: YES, and allow Guest Access: NO.
I hope I could help you
bye
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Thanks Viki, Can someone explain why the permission types need to be set to unix (not arguing, just for my own interest)? I'll give your idea a go after dinner.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Thanks Viki, Can someone explain why the permission types need to be set to unix (not arguing, just for my own interest)? I'll give your idea a go after dinner.

They do not.

The basic setup is outlined in the getting started part of the manual.
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
The basic setup is outlined in the getting started part of the manual.
Is that the fabled 'permissions guide' that has been been dangled like a dog treat by cyberjock for six+ months?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Is that the fabled 'permissions guide' that has been been dangled like a dog treat by cyberjock for six+ months?
No, but it's enough to figure it out enough to get things working.

I'm still waiting for that guide, as well. I've been running into a few edge cases that I'm not sure how to deal with.
 

diedrichg

Wizard
Joined
Dec 4, 2012
Messages
1,319
I have been holding off upgrading/fresh install of 9.3 because of that guide. Now that I know the rest of the OS I want to make sure that my permissions are perfect for the perfect build.
 

FreeNASftw

Contributor
Joined
Mar 1, 2015
Messages
124
Wow don't I feel like a tool... thanks Ericloewe, I was googling for a long time and never came across that answer. I'm sure I read that part of the doco previously but must have forgotten all about it. Lol... I know what I'll be doing tomorrow!
 
Status
Not open for further replies.
Top