ULX

Author Topic: Chage what Admins Can Do?  (Read 4697 times)

0 Members and 1 Guest are viewing this topic.

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Chage what Admins Can Do?
« on: July 19, 2009, 04:19:03 PM »
is there any way that you can change what each level of admin can do/what they have access to? I'm going to be using this for my ZS server so is there anyway I can change what they see in the admin menu or what they can use in the menu.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Chage what Admins Can Do?
« Reply #1 on: July 19, 2009, 06:48:41 PM »
Yes, you change their access using the user management commands. See 'ulx help' or the FAQs for more information.
Experiencing God's grace one day at a time.

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #2 on: July 20, 2009, 08:56:27 AM »
so if I want to make a user group only able to kick,ban and mute I would have to add add:

Deny
{
Everyothercommand
}
under each name?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Chage what Admins Can Do?
« Reply #3 on: July 20, 2009, 08:58:25 AM »
no, you'd

allow
{
     "ulx kick"
     "ulx ban"
     "ulx mute"
}
deny
{
    nothing
}
inherit_from
{
     no-one
}
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #4 on: July 20, 2009, 09:00:02 AM »
ok way more easy then I thought now how what is "inherit_from" just so I know?


how can I disallow noclip for admins by default?


"Users"
{
   //
   // This is your users file
   //
   // You can use this file to add people as admins on your server
   // Add them to the relevant section
   //
   // If you're a Lua coder you can add your own sections and use them
   // in your script by doing pl:IsUserGroup( "admin" ) etc
   //

   "superadmin"
   {
   NEVER
   }
   
   "admin"
   {
      "USER"                          "STEAMID"
      allow
       {
        "ulx kick"
        "ulx ban"
        "ulx mute"
      "ulx unmute"
      "ulxunban"
        }
        deny
        {
        nothing
        }
        inherit_from
        {
        no-one
        }
    "USER"       "STEAMID

   allow
       {
        "ulx kick"
        "ulx ban"
        "ulx mute"
      "ulx unmute"
      "ulxunban"
        }
        deny
        {
        nothing
        }
        inherit_from
        {
        no-one
        }

   }

}
« Last Edit: July 20, 2009, 09:07:01 AM by Loading »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Chage what Admins Can Do?
« Reply #5 on: July 20, 2009, 09:34:55 AM »
You are in the wrong groups file.

.../data/ULib/groups.txt
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #6 on: July 20, 2009, 09:48:08 AM »
so then

"superadmin"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx hiddenecho"
      "ulx rcon"
      "ulx luarun"
      "ulx cexec"
      "ulx ent"
      "ulx adduser"
      "ulx adduserid"
      "ulx removeuser"
      "ulx userallow"
      "ulx userdeny"
      "ulx addgroup"
      "ulx removegroup"
      "ulx groupallow"
      "ulx groupdeny"
      "overcomeimmunity"
   }
   "inherit_from"   
   {
      "admin"
   }
}
"admin"   
{
   "deny"   
   {
   }
   "allow"   
   {
      
       "ulx mute"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
      "ulx slay"
      "ulx adminmenu"
      "ulx clientmenu"
      "ulx mapsmenu"
      "ulx showmotd"
      "ulx banmenu"
       "ulx map"
      "ulx kick"
      "ulx ban"
      "ulx banid"
      "ulx unban"
      }
   "inherit_from"   
   {
      "user"
   }
}
"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"   
   {
   }


still don't know what "inherit_from"   will do

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Chage what Admins Can Do?
« Reply #7 on: July 20, 2009, 10:24:11 AM »
It inherits all the allows from the group that you told it to inherit from. This is all explained in the ulx usermanagementhelp
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #8 on: July 20, 2009, 10:48:36 AM »
ok well everything has been explained to me now and it's going to be a lot easier to setup the admin functions form now on the only thing I would like now is noclip to be disabled for all admins.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Chage what Admins Can Do?
« Reply #9 on: July 20, 2009, 11:18:38 AM »
So you want your users to be able to noclip and not your admins?
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #10 on: July 20, 2009, 04:13:34 PM »
no sorry I want no one able to noclip if I can.

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #11 on: July 20, 2009, 04:27:32 PM »
ok this is lame ever since making the changes I can't do anything (I don't have access to any commands)


from ulib in the data folder:

Users:

Code: [Select]
"myingmaename"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"superadmin"
}
"id" "mysteamid"
"pass" ""
"allow"
{
}
}

Groups:

Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
           "admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulx menu"
        "ulx mute"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx slay"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
        "ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
}
"inherit_from"
{
"user"
}
}
"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"
{
}

Form settings:

Users.txt

Code: [Select]
"Users"
{
//
// This is your users file
//
// You can use this file to add people as admins on your server
// Add them to the relevant section
//
// If you're a Lua coder you can add your own sections and use them
// in your script by doing pl:IsUserGroup( "admin" ) etc
//

"superadmin"
{
"myingamename" "mysteamid"
               
}

"admin"
{
"adminsingmaename"                          "adminssteamid" 
}

}

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #12 on: July 20, 2009, 06:22:16 PM »
sorry for asking for so much help

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #13 on: July 21, 2009, 07:22:31 AM »
anyone?

Offline Loading

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Chage what Admins Can Do?
« Reply #14 on: July 21, 2009, 08:16:40 AM »
well it's the groups.txt that broke it if I remove that form data then it starts working again.