ULX

Author Topic: users in lower groups can target me with adduser and removeuser...  (Read 1486 times)

0 Members and 1 Guest are viewing this topic.

Offline GameNerdz

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Basically, my staff who are not superadmin and that we made sure that they cant target me with commands or physgun... can now demote me on my own server from superadmin...

Im going to post my Groups.txt cause I really don't see whats going on.

Ive also used the xgui to restrict or "Whitelist" Groups that those guys can promote and demote that are below them... and they still can just bypass that and demote me... Is this a bug or something or did I up something with ranks?

Anyways thanks for the help!


My ULib/ULX versions (run "ulx version" in console):
ULib v2.63w
ULX v3.73w

Game mode(s) I am having this problem on: Darkrp

Lua errors shown in console, if any: None

Group.txt
Code: [Select]
"jr_mod"
{
"can_target" "!%mod"
"allow"
{
"ulx bring"
"ulx gag"
"ulx goto"
"ulx kick"
"ulx mute"
"ulx reservedslots"
"ulx return"
"ulx seeasay"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx teleport"
"ulx tsay"
"ulx ungag"
"ulx unmute"
}
"inherit_from" "user"
}
"sr_mod"
{
"can_target" "!%admin"
"allow"
{
}
"inherit_from" "mod"
}
"superadmin"
{
"allow"
{
"awarn_delete"
"awarn_options"
"darkrp_changedoorsettings"
"darkrp_setlicense"
"darkrp_setmoney"
"fpp_settings"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx banid"
"ulx bot"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx groupdeny"
"ulx hiddenecho"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logechocolorconsole"
"ulx logechocolordefault"
"ulx logechocoloreveryone"
"ulx logechocolormisc"
"ulx logechocolorplayer"
"ulx logechocolorplayerasgroup"
"ulx logechocolors"
"ulx logechocolorself"
"ulx logevents"
"ulx logfile"
"ulx logjoinleaveecho"
"ulx logspawns"
"ulx logspawnsecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx sendlua"
"ulx setgroupcantarget"
"ulx stopvote"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"ulx voteecho"
"unolimited manager"
"xgui_gmsettings"
"xgui_managebans"
"xgui_managegroups"
"xgui_svsettings"
}
"inherit_from" "developer"
}
"user"
{
"allow"
{
"ulx asay"
"ulx help"
"ulx motd"
"ulx profile"
"ulx psay"
"ulx roll"
"ulx steamid"
"ulx steamid64"
"ulx thetime"
"ulx uid"
"ulx usermanagementhelp"
"ulx version"
"ulx votemap"
"ulx who"
}
}
"noaccess"
{
"allow"
{
}
"inherit_from" "user"
}
"developer"
{
"can_target" "!%superadmin"
"allow"
{
}
"inherit_from" "headofstaff"
}
"badmin"
{
"allow"
{
}
"inherit_from" "noaccess"
}
"manager"
{
"can_target" "!%sr_manager"
"allow"
{
"ulx hiddenecho"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logechocolorconsole"
"ulx logechocolordefault"
"ulx logechocoloreveryone"
"ulx logechocolormisc"
"ulx logechocolorplayer"
"ulx logechocolorplayerasgroup"
"ulx logechocolors"
"ulx logechocolorself"
"ulx logevents"
"ulx logfile"
"ulx logjoinleaveecho"
"ulx logspawns"
"ulx logspawnsecho"
"ulx voteecho"
"unolimited manager"
"xgui_managegroups"
"ulx adduserid" "* <admin,sr_mod,mod,jr_mod>"
"ulx adduser" "* <admin,sr_mod,mod,jr_mod>"
}
"inherit_from" "admin"
}
"director"
{
"can_target" "!%headofstaff"
"allow"
{
}
"inherit_from" "sr_manager"
}
"admin"
{
"can_target" "!%admin"
"allow"
{
"awarn_delete"
"awarn_options"
"awarn_remove"
"awarn_view"
"awarn_warn"
"darkrp_admincommands"
"darkrp_getadminweapons"
"darkrp_getjob_cp"
"darkrp_getjob_judge"
"darkrp_getjob_mayor"
"darkrp_seeevents"
"darkrp_setdoorowner"
"fpp_cleanup"
"fpp_touchotherplayersprops"
"fspectate"
"fspectateteleport"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banish"
"ulx blind"
"ulx bring"
"ulx buddha"
"ulx chattime"
"ulx cleanmap"
"ulx cloak"
"ulx confuse"
"ulx csay"
"ulx ctsay"
"ulx freeze"
"ulx frespawn"
"ulx gag"
"ulx gimp"
"ulx giveammo"
"ulx giveweapon"
"ulx god"
"ulx goto"
"ulx hiddenecho"
"ulx hp"
"ulx ignite"
"ulx ip"
"ulx jail"
"ulx jailtp"
"ulx jumppower"
"ulx kick"
"ulx kickafternamechanges"
"ulx kickafternamechangescooldown"
"ulx kickafternamechangeswarning"
"ulx kickbots"
"ulx loadout"
"ulx map"
"ulx maul"
"ulx mechatenabled"
"ulx mhp"
"ulx motdfile"
"ulx motdurl"
"ulx mute"
"ulx noclip"
"ulx nodraw"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx reservedslots"
"ulx respawn"
"ulx return"
"ulx rocket"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx runspeed"
"ulx seeanonymousechoes"
"ulx send"
"ulx showmotd"
"ulx silence"
"ulx sin"
"ulx slap"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx stopvote"
"ulx strip"
"ulx teleport"
"ulx trainfuck"
"ulx tsay"
"ulx uarmor"
"ulx unban"
"ulx unbanish"
"ulx unblind"
"ulx unbuddha"
"ulx uncloak"
"ulx unconfuse"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unnodraw"
"ulx unragdoll"
"ulx unsilence"
"ulx unsin"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx votekick"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap2"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx walkspeed"
"ulx welcomemessage"
"ulx whip"
"xgui_managebans"
}
"inherit_from" "operator"
}
"sr_manager"
{
"can_target" "!%director"
"allow"
{
"darkrp_changedoorsettings"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx removeuserid"
}
"inherit_from" "manager"
}
"operator"
{
"can_target" "!%admin"
"allow"
{
"ulx bring"
"ulx cac"
"ulx freeze"
"ulx gag"
"ulx gimp"
"ulx goto"
"ulx jail"
"ulx jailtp"
"ulx kick"
"ulx mute"
"ulx noclip"
"ulx physgunplayer"
"ulx reservedslots"
"ulx return"
"ulx seeasay"
"ulx send"
"ulx slay"
"ulx spawnecho"
"ulx spectate"
"ulx teleport"
"ulx tsay"
"ulx unfreeze"
"ulx ungag"
"ulx ungimp"
"ulx unjail"
"ulx unmute"
"ulx voteban"
"ulx voteecho"
}
"inherit_from" "sr_mod"
}
"mod"
{
"can_target" "!%sr_mod"
"allow"
{
"ulx csay"
"ulx gimp"
"ulx jail"
"ulx jailtp"
"ulx physgunplayer"
"ulx send"
"ulx slap"
"ulx ungimp"
"ulx unjail"
"ulx vote"
}
"inherit_from" "jr_mod"
}
"headofstaff"
{
"can_target" "!%developer"
"allow"
{
}
"inherit_from" "director"
}

Ive spent an hour trying to fix this and Im ready to flip. So any help is really appreciated

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: users in lower groups can target me with adduser and removeuser...
« Reply #1 on: January 31, 2018, 06:41:20 PM »
who are not superadmin and that we made sure that they cant target me with commands

 You're going to have to be more specific - specifically what groups can target you?
your groups file is long and somewhat complex, combined with the fact you're apparently also using fadmin which has it's own access and admin control that might be used to target you (ulx doesn't prevent that)

Here is your groups file watered down, top to bottom inheritance looks ok, but from what I can see, bottom to top can_target does some odd branching.
I think Managers can add anyone to 4 groups, but my team or someone more used to our whitelist would have to verify that.
I left in 'allow' access for those groups that could be affecting controlling group access in some way

Code: [Select]
"superadmin"
{
"allow"
{
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx banid"
"ulx groupallow"
"ulx groupdeny"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx setgroupcantarget"
"ulx userallow"
"ulx userallowid"
"ulx userdeny"
"ulx userdenyid"
"unolimited manager"
"xgui_managegroups"
}
"inherit_from" "developer"
}
"developer"
{
"can_target" "!%superadmin"
"inherit_from" "headofstaff"
}
"headofstaff"
{
"can_target" "!%developer"
"inherit_from" "director"
}
"director"
{
"can_target" "!%headofstaff"
"inherit_from" "sr_manager"
}
"sr_manager"
{
"can_target" "!%director"
"allow"
{
"darkrp_changedoorsettings"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx removeuserid"
}
"inherit_from" "manager"
}
"manager"
{
"can_target" "!%sr_manager"
"allow"
{
"xgui_managegroups"
"ulx adduserid" "* <admin,sr_mod,mod,jr_mod>"
"ulx adduser" "* <admin,sr_mod,mod,jr_mod>"
}
"inherit_from" "admin"
}
"admin"
{
"can_target" "!%admin"
"allow"
{
"darkrp_admincommands"
}
"inherit_from" "operator"
}
"operator"
{
"can_target" "!%admin"
"inherit_from" "sr_mod"
}
"sr_mod"
{
"can_target" "!%admin"
"inherit_from" "mod"
}
"mod"
{
"can_target" "!%sr_mod"
"inherit_from" "jr_mod"
}
"jr_mod"
{
"can_target" "!%mod"
}
"inherit_from" "user"
}
"badmin"
{
"inherit_from" "noaccess"
}
"noaccess"
{
"allow"
{
}
"inherit_from" "user"
}
"user"
{
}
« Last Edit: January 31, 2018, 06:44:48 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming