How to make a share browsable only by certain users?

Status
Not open for further replies.
Joined
Jul 19, 2016
Messages
72
I feel complete lost and stupid but I cannot seem to be able to make a CIFS share only avalible to certain users.

The case is that I want one share that is open to certain users. And then have an admin user that can access this but also a restricted area only available to the admin.

I have tried making two groups with one user in each. But I cannot seem to get it to work. When login in with the regular user it will browse the admin folder but not let it write which is good. But I do not want it to browse either I want it restricted totally. Is there any how to on this? Or what i need to search for? Cause I can't seem to find it.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
what is your environment? all windows machines? mix?

The case is that I want one share that is open to certain users. And then have an admin user that can access this but also a restricted area only available to the admin.
what do you mean by this? do you want a special place within the dataset that meets the above requirements you laid out for "certain users"? to my knowledge (someone more experienced can correct me) but this can only be accomplished within the CLI or windows permissions if you go that way (warning though, my experience is very limited on windows permission, i'm strictly unix on all my shares).

why not just create a separate dataset just for the admin? before I say more, give more details on your environment. and permissions types on your shares.
 
Joined
Jul 19, 2016
Messages
72
It seems I did the newbie thing, I though that I needed to do everything in FreeNAS and forgot the Windows part. The part where you right click the share and remove the "read" from everyone. Now the share/datasheet is only accessible for admin.

The other datasheet is shared to both admin and the user with CIFS. But If I have an unix machine (XBMC/KODI) that want access do I add a Unix share to the same folder/datasheet? Or would it be able to access the CIFS share or visa versa the UNIX share will allow windows pc's to access?
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
Glad you got the first part figured out.

I can't help you with your second question as I do t want to give you wrong information and I don't have a Linux box nearby to test on. @anodos is very knowledgable and might be able to help.

I do know for a fact you can access shares with UNIX permissions from Windows boxes. Whether it is recommended is another thing entirely.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
If you want info on Samba shares, take a look at my Samba permissions video in my signature.
 
Status
Not open for further replies.
Top