Koozali.org: home of the SME Server

exclude from everyone (shared) group

Offline bunkobugsy

  • *
  • 306
  • +4/-0
exclude from everyone (shared) group
« 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 :)
« Last Edit: March 01, 2018, 09:47:54 AM by bunkobugsy »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: exclude from everyone (shared) group
« Reply #1 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #2 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?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: exclude from everyone (shared) group
« Reply #3 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

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #4 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?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: exclude from everyone (shared) group
« Reply #5 on: March 01, 2018, 03:56:39 PM »
well.. it seems like we have a X Y problem here..
you've got the solutions, but you're looking for something different

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #6 on: March 01, 2018, 04:04:08 PM »
I'm looking for the easiest way, maybe I overlooked it somehow. Just asking... :)

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: exclude from everyone (shared) group
« Reply #7 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #8 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.
« Last Edit: March 01, 2018, 10:02:21 PM by bunkobugsy »

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: exclude from everyone (shared) group
« Reply #9 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 ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #10 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)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: exclude from everyone (shared) group
« Reply #11 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?

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: exclude from everyone (shared) group
« Reply #12 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.
C'est la fin du monde !!! :lol:

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #13 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.

Offline bunkobugsy

  • *
  • 306
  • +4/-0
Re: exclude from everyone (shared) group
« Reply #14 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 :)