Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: bunkobugsy on March 01, 2018, 09:14:19 AM

Title: exclude from everyone (shared) group
Post by: bunkobugsy on March 01, 2018, 09:14:19 AM
Is there any way to exlcude a user from the shares accessible for the everyone (shared) group?

I'm not referring to the   db accounts setprop username EveryoneEmail no   email setting.

Thanks in advance, sorry if I didn't search long enough :)
Title: Re: exclude from everyone (shared) group
Post by: janet on March 01, 2018, 02:18:22 PM
bunkobugsy

Quote
Is there any way to exclude a user from the shares accessible for the everyone (shared) group?

Don't use the shared group.
Create a new group & give the shares access rights via that group.
Add all users to that new group except the one user you want to exclude.
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 01, 2018, 03:06:49 PM
Thanks, had thought of this, it wouldn't work for write=group, read=everyone case.

Any other custom-template way to remove a user from the samba shared group?
Title: Re: exclude from everyone (shared) group
Post by: Stefano on March 01, 2018, 03:32:37 PM
Thanks, had thought of this, it wouldn't work for write=group, read=everyone case.

as Janet said, create a group with all the users you need and give read and write right to that group, don't use everyone
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 01, 2018, 03:44:05 PM
What happens if I need to choose Write=group, Read=everyone scenario?

The only two other options are Write=admin, Read=group and Write=group, Read=group.

Everyone and admin are hardcoded and the only selectable variable is the group.

Isn't there way to custom-template the shared group?

Or is this achievable only with SharedFolders?
Title: Re: exclude from everyone (shared) group
Post by: Stefano on March 01, 2018, 03:56:39 PM
well.. it seems like we have a  X Y  (http://xyproblem.info/) problem here..
you've got the solutions, but you're looking for something different
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 01, 2018, 04:04:08 PM
I'm looking for the easiest way, maybe I overlooked it somehow. Just asking... :)
Title: Re: exclude from everyone (shared) group
Post by: janet on March 01, 2018, 04:19:50 PM
bunkobugsy
Quote
Thanks, had thought of this, it wouldn't work for write=group, read=everyone case.

I think you missed the point.

Use write=Group, read=Group
with only the users you want to have access, as members of that group.
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 01, 2018, 10:00:03 PM
Still in Write=group, Read=group scenario it's the same set of users,
whereas in Write=group, Read=everyone there're two different groups.
Title: Re: exclude from everyone (shared) group
Post by: janet on March 02, 2018, 04:52:45 AM
bunkobugsy

You have to create another group (call it say alluser-1) that includes all users except the one user.
Whenever you add a new user to the system then you add them to the alluser-1 group by default.
Then everone group will match alluser-1 group (except for the one user).

Is that not uderstandable to you ?
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 02, 2018, 08:29:51 AM
Perfectly (from your first reply).

Don't mean to be rude, thanks all for helping, but:

what do I do when I need  Write=group, Read=everyone ?

There is no option to define Write=group1, Read=group2.

(Where group2 would be alluser-1, but it's hardcoded to everyone)
Title: Re: exclude from everyone (shared) group
Post by: Stefano on March 02, 2018, 11:09:29 AM
Quote
Is there any way to exlcude a user from the shares accessible for the everyone (shared) group?

this is from your initial request.. you've the answer..

why do you need everyone group?
Title: Re: exclude from everyone (shared) group
Post by: Daniel B. on March 02, 2018, 11:30:37 AM
Perfectly (from your first reply).

Don't mean to be rude, thanks all for helping, but:

what do I do when I need  Write=group, Read=everyone ?

There is no option to define Write=group1, Read=group2.

(Where group2 would be alluser-1, but it's hardcoded to everyone)

Ibays permissions model is limited. That's why I wrote the shared folders contrib. If you need finer ACL, I suggest you use shared foldes.
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 02, 2018, 01:13:09 PM
this is from your initial request.. you've the answer..

why do you need everyone group?

Because sometimes it is necessary for a group of people to publish something and everyone else to just view it.
Title: Re: exclude from everyone (shared) group
Post by: bunkobugsy on March 02, 2018, 01:14:24 PM
Ibays permissions model is limited. That's why I wrote the shared folders contrib. If you need finer ACL, I suggest you use shared foldes.

And a big thank you for that :)