Page 1 of 1

Add folder to a group!

Posted: 20 Apr 2016 21:09
by petterd
Hello!
Tried to search the forum, and I believe I found a working solution, but one question though!

I'm new to Nas4Free, and have been "playing around" with latest version for a week now.
I have a mount point "nas", and one share "nas", and two users, USER1 and USER2.
Then in that share, I have four folders, user1, user2, music and pictures.
Each user has it's own private folder, USER1 -> folder user1 and USER2 -> folder user2.
Have also created two groups, MUSIC and PICTURES.
What I was trying to do, is to add folder MUSIC to the group music, and the same with folder pictures to group PICTURES.
This is only an example, but wanted to add group MUSIC to user1, and group PICTURES to user2.
The only sollution to do this, was to use WinSCP, to add group id to each folder music and pictures.

Question: Is there any way to do this in Nas4Free GUI? I believe the CLI can be used chown.....
Best regards.

Re: Add folder to a group!

Posted: 20 Apr 2016 22:35
by raulfg3
no from n4f webgui, but you can use CLI (really easy) or winSCP and do in a windows like way.

Re: Add folder to a group!

Posted: 20 Apr 2016 22:51
by petterd
Hi, thanks a lot for your answer. I'll take a look at the CLI, guess the right commands are chmod, chown, chgrp.
I came up with one more question:
Is it possible to create a public folder, without any user authentication, and at the same time have private folders for users with authentication?

Re: Add folder to a group!

Posted: 21 Apr 2016 07:25
by raulfg3

Re: Add folder to a group!

Posted: 25 Apr 2016 23:48
by petterd
Hi, thanks a lot, sorry for late reply.
I've looked into that topic, but what I was trying, was to have a public folder without any user authentication, and a private folder for each user.
I could not read from the article that this was possible. As far as I can understand is, as soon you configure one username,
the mounted share needs to be authenticated by a username/password...
Best regards

Re: Add folder to a group!

Posted: 26 Apr 2016 06:00
by alexey123
Hi, peterd.
Read here viewtopic.php?t=1552

Re: Add folder to a group!

Posted: 09 Nov 2018 13:50
by odseg
raulfg3 wrote:
20 Apr 2016 22:35
no from n4f webgui, but you can use CLI (really easy) or winSCP and do in a windows like way.
Good day, in current version 11.2.0.4 - Omnius (6154) webgui not have this option too?
will be it added ?

Re: Add folder to a group!

Posted: 30 Sep 2019 15:58
by M*I*B
... may can I kidnap this thread?! I'f got the same problem I believe...

I have create many Datasets at Pool "NAS_A" like Pictures, Music, Videos, Dokuments, a.s.o.. Most all Clients are WIN7 or WIN10 OS'es.

Now I want my underage daughter can not access the adult folder; also a dataset of the NAS_A...

For that I have create two new groups named "Family" and "Adult". I also have create two new user named "cynthia" and "britta". Cynthia (daughter) are member of the group "Family", Britta (my wife) is member of the group "Family" and also member of the group "Adult".
With that I go to "Disks > ZFS > Datasets > Dataset", pick the "adult"-set. At "Access Restrictions" I have set the user to "root" (same at is was before) and the group to "Adult". I also set on "Mode" that Owner and Group kan Read/Write/Execute, Others can none of it...

Now I login on a Windows machine as my daugther, open a shell (CMD) and try to map the Set's to a local Driveletter like "net use //nas/alowed dataset/ user:cynthia password blablub". That works well but if I try to go into the folder I got an Access denied... Same occure if I try to go to that folder over the "network neighberhood" via UNC...

What I'm doing wrong? What I don't have understand right? Can someone help (in german maybe?)?