How to set up different shares for different users

Status
Not open for further replies.

Veovis

Cadet
Joined
Jun 19, 2012
Messages
2
I would assume this can be done but I have not seen how to do this yet. Here is my situation:

I have an office with about 20 different users.
Each user needs their own share that other users do not have access to.
There are some shares that all users have access to.
There are some shares that a smaller set of users have access to.
There are a few users who have access to all shares, including other users shares.

How do I duplicate this in FreeNAS

Edit: I should point out that I am proficient with CLI and am very knowledgeable of both Linux and Unix, just not seeing in menus how I can manage CIFS shares on a per user /group basis. Perhaps I am missing it.
 

louisk

Patron
Joined
Aug 10, 2011
Messages
441
I would suggest you add local users, and then login on the console and set permissions and ownership that way. Should work fine.
 

Veovis

Cadet
Joined
Jun 19, 2012
Messages
2
I would suggest you add local users, and then login on the console and set permissions and ownership that way. Should work fine.

I knew that would work, I was hoping for a front end that would do this as it does not make much sense to need to do stuff via GUI then also do more via CLI. Just seems a little tedious for what I would consider a normal feature of a NAS. Is this truly my only option?
 

louisk

Patron
Joined
Aug 10, 2011
Messages
441
There are probably other options, that's just how I did it. It was easier than figuring out anything else.
 
Joined
Jul 25, 2012
Messages
1
Problems with CIFS permissions

Hi,

I have a big headache with share permissions with FreeNAS 8. Let me show you my scenario:
- I have two users with different passwords each other (user1 and user2);
- Each user is allocated to its specific group (group1 for user1 and group2 for user2);
- I created a ZFS volume (RAID-1 Mirror), with two ZFS datasets (zfs1 for group1 and zfs2 for group2);
- Created two CIFS shares, one for each dataset (folder1 for zfs1 and folder2 for zfs2);
- Set up permissions for each dataset (zfs1 is user=user1 and group=group1 | zfs2 is user=user2 and group=group2).

I can see shares in Windows Explorer when accessing server's IP.

I can log in folder1 using user1's user and password.
I cannot login in folder2 using user2's user and password. o_O
And when logged in as user1 I can browse at user2's folder - when it could not be allowed by the permissions configures at ZFS volues, right?

Can someone gimme some help?
 

Daniel-san

Dabbler
Joined
Jun 25, 2012
Messages
13
Hi, I'm very new to FreeNas, but I am a IT pro.
the easiest way to accomplish user rights would be with a windows server.

connect the windows box to the freenas box via iSCSI, and then create the shares and permission with the windows server.


this might seem like over kill for just 2 users.. but this is how it's done in the real world with multiple users (with the help of AD of course)


Hi,

I have a big headache with share permissions with FreeNAS 8. Let me show you my scenario:
- I have two users with different passwords each other (user1 and user2);
- Each user is allocated to its specific group (group1 for user1 and group2 for user2);
- I created a ZFS volume (RAID-1 Mirror), with two ZFS datasets (zfs1 for group1 and zfs2 for group2);
- Created two CIFS shares, one for each dataset (folder1 for zfs1 and folder2 for zfs2);
- Set up permissions for each dataset (zfs1 is user=user1 and group=group1 | zfs2 is user=user2 and group=group2).

I can see shares in Windows Explorer when accessing server's IP.

I can log in folder1 using user1's user and password.
I cannot login in folder2 using user2's user and password. o_O
And when logged in as user1 I can browse at user2's folder - when it could not be allowed by the permissions configures at ZFS volues, right?

Can someone gimme some help?
 

crisporbe

Cadet
Joined
Feb 20, 2013
Messages
2
Hello,
I imaged the FreeNAS-8.3.0-RELEASE-x86.img.xz as .img to a pen drive.
After booting from the usb I see the console setup and I started to use it, I create a Volume, users, groups....
But I can not see where or how to create DATASETS
, under Storege-->Volumes menu I can see my volume (/mnt/volimen1) , Auto import, Import Volume, View Disk, View Volumes, Volume manager. I I expands the /mnt/volumen1 I oly can see the Change Permissions option.
 

ddech

Cadet
Joined
Feb 24, 2013
Messages
1
crisporbe: Did you boot onto a system that has hard drives, if so how many and what kind? Were they windows formatted disks (ntfs / fat32) or ?
I had this issue with one 320 Gb SATA HDD that I was using. I was running freenas (same ver) and had created a volume on it, but I wanted to erase the disk. So I thought I could do it by selecting "Destroy dataset" and/or using "Detach volume". But after that, beyond boot up (or POST) I couldn't see it when I restarted freenas, meaning I couldn't see it to import it. So I took it out and re-partitioned/formatted the disk with ntfs (under Win7).. But it still wouldn't come up when re-attaching it to freenas machine (I went to the shell and ran the "gpart" command; there is also a LiveCD of Ubuntu - https://help.ubuntu.com/community/GParted which may be helpful). I figured out that it would come up if I formatted it using a Ubuntu machine. But instead of doing it ext4, i used FreeBSD for the choice of format. Perhaps there was an issue (e.g., non-existent or incorrect parameters) with either the MBR or the GPT record since freenas wouldn't see it, happening after I first ran those commands. But it worked after I did the format and added it back to the freenas. I was able to do the 'import volume' function (Storage / Volumes / Import Volumes) and create a new volume. You might have to dig deeper as to why the disk(s) aren't seen in the Storage section. Start with the disks themselves (and do a new thread too?)?
 
Status
Not open for further replies.
Top