Author Topic: How to make a group have higher immunity than SuperAdmin?  (Read 20420 times)

0 Members and 1 Guest are viewing this topic.

Offline Wayne Brady

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
How to make a group have higher immunity than SuperAdmin?
« on: November 08, 2009, 06:14:53 PM »
I need to make an owner group (for me) and a Co-owner group for my co-owners. I can make the groups easily, but how would I go about making them have everything a super admin can do, but higher?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #1 on: November 08, 2009, 08:49:13 PM »
Re: Immunity - see http://forums.ulyssesmod.net/index.php/topic,4314.0.html

Re: access - In Gmod standard access, there are 3 levels, superadmin, admin and user, there is no higher group than superadmin.
In ULX, with it's customizability, you can make many groups. Use addgroup to create a group called owner and have it inherit superadmin, then, groupallow with the revoke switch to remove access to some superadmin commands you'd rather have owner have, then groupallow those same commands to owner.
See ulx help and ulx usermanagementhelp for those commands explained (the ulx help is out of date for the immunity explanation, so ignore that - refer to the link above I gave you for that)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Wayne Brady

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #2 on: November 11, 2009, 04:15:12 AM »
So, can you tell me the exact commands to make it do everything a Superadmin can, but with higher immunity?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #3 on: November 11, 2009, 03:21:15 PM »
Read the how to, then ask what you don't understand.
It's explained well.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Wayne Brady

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #4 on: November 11, 2009, 03:51:07 PM »
My problem with this is the fact that won't it take forever just to retype every groupallow thing for the superadmin again so it makes it so they can't ban owners and stuff, and also to make owners and co-owners be able to have higher immunity? I don't want to have to type ulx groupallow superadmin "ulx ****" "!%owner" over and over again..

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #5 on: November 11, 2009, 06:13:10 PM »
In all honesty, we and Garry meant for superadmin to be the highest ranking access anyone would ever need.
In Gmod terms, superadmin default = root = superuser.
That's why Gmod allows it the most commands.
That's why we allow it the most commands.
In most cases, it would be best to create a lower group with less commands, which would also mean much typing but not as much as editing every allow for the superuser.

Until XGUI gets more completed, yes, you'd need to do alot of typing.
Remember though, this is SVN. It's under development... which means Megiddo may see this discussion and allow (or already has and it's just not clear yet something similiar to
ulx groupallow superadmin * !owner
Back up your groups and users files (which, when running SVN, you should anyway)
Try that.
Or, even try ulx groupallow superadmin "ulx" !owner
That in it's own right has issues though, won't be able to use asay to talk to the wall ops, etc.

Or if those two tries don't work, make one or two command access immunity changes like shown in the how to,
then go examine what edits were done to the data/ULib/groups.txt file, and copy those with a good text editor for the other commands you don't want performed on an owner.

Experiment.
Best way to learn.
Keep backups so you can recover from what you learned not to do. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #6 on: November 12, 2009, 07:52:08 PM »
There's no 'mass permission edit' in place right now... I don't really see any good way to do that.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #7 on: November 12, 2009, 07:57:13 PM »
There's no 'mass permission edit' in place right now... I don't really see any good way to do that.
We should find a way for those like us who like console commands, but are lazy and don't want to have to type, even using autocomplete, for every command for every group. =)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #8 on: November 12, 2009, 08:20:26 PM »
We should find a way for those like us who like console commands, but are lazy and don't want to have to type, even using autocomplete, for every command for every group. =)

I'm open to suggestions. :)
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #9 on: November 13, 2009, 08:36:51 PM »
Just an idea for starters...

ulx groupallow superadmin * "!%owner"
where "*" =
1. Would add no additional access and instead would
2. would cycle through the superadmin's current allow table and make the same change as if I'd typed each "ulx <...>" command individually.

I feel there's a pitfall I'm missing there...but, again, just an idea trying to keep wheels turning. (mine and anyone elses)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #10 on: November 15, 2009, 09:28:19 PM »
Just an idea for starters...

ulx groupallow superadmin * "!%owner"
where "*" =
1. Would add no additional access and instead would
2. would cycle through the superadmin's current allow table and make the same change as if I'd typed each "ulx <...>" command individually.

I feel there's a pitfall I'm missing there...but, again, just an idea trying to keep wheels turning. (mine and anyone elses)

How about having an access tag named __target that is just general ability to target on all commands? But then you'd be unable to psay someone you can't target.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #11 on: November 16, 2009, 09:10:15 AM »
How about having an access tag named __target that is just general ability to target on all commands? But then you'd be unable to psay someone you can't target.
That was my concern throwing out things to Wayne previously.
That in it's own right has issues though, won't be able to use asay to talk to the wall ops, etc.

I'm guessing you mean, for instance, ulx groupallow <group> "ulx __target" <!<group>>?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #12 on: November 16, 2009, 10:01:34 AM »
I'm guessing you mean, for instance, ulx groupallow <group> "ulx __target" <!<group>>?

Basically, yes.
Experiencing God's grace one day at a time.

Offline Wayne Brady

  • Newbie
  • *
  • Posts: 18
  • Karma: -1
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #13 on: November 17, 2009, 12:25:48 PM »
Say if group1 inherits from group2, would group1 have higher immunity? Because, that's how I have it set up now.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to make a group have higher immunity than SuperAdmin?
« Reply #14 on: November 17, 2009, 03:50:40 PM »
There is no 'higher' (or even 'lower') immunity in the inheritance chain unless you've used groupallow <group2> <ulx command> "!%group1" on every command of every group below that group
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming