Author Topic: Problems with User Access.  (Read 2044 times)

0 Members and 1 Guest are viewing this topic.

Offline Tricky D

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Problems with User Access.
« on: February 15, 2009, 11:07:45 AM »
Hey guys, i'm having some problems with my little brother accessing the admin panel on my listen server.

I have my data/ulib/groups.txt set up to my liking, and have tried to add my brother to some of the groups I have created using the command ulx adduser. Some of the groups that I have definately created properly say invalid group, and some seem to work. However, when my brother is in the admin group OR the superadmin group, wierd things start to happen. If he types !menu, the only thing he can see is MOTD. If he types !adminmenu, that works fine and he can edit server options. If he types !clientmenu, he can select a client on the left hand side, but there are no options such as kick, ban etc... only white space. Here is a copy of my groups.txt.
Code: [Select]
"moderator"
{
"allow"
{
"ulx kick"
}
"deny"
{
}
"inherit_from"
{
}
}

"admin"
{
"allow"
{
"ulx kick"
"ulx psay"
"ulx seeasay"
"ulx asay"
"ulx tsay"
"ulx csay"
"ulx thetime"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx menu"
"ulx adminmenu"
"ulx_valueupdate"
"ulx_cvar"
"ulx clientmenu"
"ulx mapsmenu"
"ulx_getgamemodes"
"ulx motd"
"ulx showmotd"
"ulx banmenu"
"ulx_getbans"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx usermanagementhelp"
}
"deny"
{
}
"inherit_from"
{
"moderator"
}
}

"superadmin"
{
"allow"
{
"_pw"
"ulib_passtime"
"ulib_passtimeout"
"ulx"
"ulx help"
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx hiddenecho"
"ulx spawnecho"
"ulx psay"
"ulx seeasay"
"ulx asay"
"ulx tsay"
"ulx csay"
"ulx thetime"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx menu"
"ulx adminmenu"
"ulx_valueupdate"
"ulx_cvar"
"ulx clientmenu"
"ulx mapsmenu"
"ulx_getgamemodes"
"ulx motd"
"ulx showmotd"
"ulx banmenu"
"ulx_getbans"
"ulx rcon"
"ulx luarun"
"ulx exec"
"ulx cexec"
"ulx ent"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx usermanagementhelp"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx who"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx addforceddownload"
"ulx debuginfo"
"ulx physgunplayer"
"ulx voteecho"
"ulx vote"
"ulx votemap2"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekick"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx voteban"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx veto"
"ulx votemapaddmap"
"ulx votemap"
"overcomeimmunity"
"ulx settitle"
"ulx title"
"ulx mytitle"
"ulx explode"
}
"deny"
{
}
"inherit_from"
{
"admin"
}
}

// This is your default user. Everyone is considered part of this group so handle with care!
"user"
{
"allow"
{
}
"deny"
{
}
"inherit_from"
{
}
}

"none"
{
"allow"
{
}
"deny"
{
}
"inherit_from"
{
}
}

"vip"
{
"allow"
{
}
"deny"
{
}
"inherit_from"
{
               "admin"
}
}

I am really stumped as to why it won't work. Oh and I use UTeam, if that's significant.

Thanks guys.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problems with User Access.
« Reply #1 on: February 15, 2009, 12:37:06 PM »
You're users group is missing many necessary allows that keep things running smoothly for people joining.
Though some can be taken away if you don't want plain people having access (like ulx who, etc), some of them are required as they are inherited by the higher groups.

I'm not sure if that is what is causing your issue, but it might fix much if you sort it out.
Also see our FAQ "Having trouble with access?" (It's in our FAQ forum area)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Tricky D

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Problems with User Access.
« Reply #2 on: February 15, 2009, 12:54:24 PM »
What are the commands that each group require?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problems with User Access.
« Reply #3 on: February 15, 2009, 05:41:38 PM »
Here are the default none and users groups.
As the warning says, be extremely careful about editing 'users', ALL other groups inherit it's commands.
I'm not 100% sure which are absolutely required, but am betting they include "ulx", and the "ulx_" underscore allows. Help, Psay, Asay, Who, Motd, Thetime and votemap I'm reasonably sure could be removed if you don't want users using them...just make sure to place them in any other groups.
Leave the 'none' group alone totally.
Also, your text pastes as though its lost formatting. Make sure whatever your editing in can handle ascii without converting it (Wordpad/Word do that frequently)

Code: [Select]
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Tricky D

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Problems with User Access.
« Reply #4 on: February 16, 2009, 03:54:38 AM »
Thanks I'll try that. I am also going to add the groups to the default Gmod groups file, to see if that is what's wrong.