Author Topic: Admin  (Read 5945 times)

0 Members and 1 Guest are viewing this topic.

Offline DannyMartinez

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Admin
« on: March 20, 2007, 02:07:17 PM »
What if you can make other people admins by saying  <Admin (name)> ;D ;D

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Admin
« Reply #1 on: March 20, 2007, 02:51:01 PM »
What's wrong with adduser? I didn't make it a say command because it's not used very often.
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: Admin
« Reply #2 on: March 20, 2007, 06:03:16 PM »
Danny, it is also a safety feature.

The console 'adduser' command can't be run from client console, only server.
This helps ensure that only server hosts, OR, those specifically given "ulx rcon" access, can add users.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Admin
« Reply #3 on: March 20, 2007, 06:40:09 PM »
JamminR,
Actually, "ulx adduser" can be run by anyone with superadmin access, however, only the listen server host, or dedicated server console is allowed to modify access of users who are already superadmins (for security reasons, to prevent a rogue superadmin from stealing all access for himself.)

Danny,
Make sure you are a superadmin, listen server host, or at the dedicated server console, and type "ulx adduser" in the console for more help.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Admin
« Reply #4 on: March 21, 2007, 03:28:04 PM »
Ah, my apologies Danny (all) for my mistake.
I was close, but this isn't hand grenades or horseshoes :P

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DannyMartinez

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Admin
« Reply #5 on: March 24, 2007, 08:42:27 PM »
Oh nvm i found out how to make other people admins in my sever (: .By going in consle and typeing in ulx adduser <name> superadmin 1

Offline DannyMartinez

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Admin
« Reply #6 on: March 26, 2007, 08:24:20 PM »
BUt i dont know how to take  away the players rihts to be a admin   ??? :(

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: Admin
« Reply #7 on: March 28, 2007, 03:41:52 PM »
delete them from the users file?

Offline DannyMartinez

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Admin
« Reply #8 on: March 28, 2007, 08:18:32 PM »
delete them from the users file?
Where do i delete the users file?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Admin
« Reply #9 on: March 29, 2007, 09:40:00 AM »
Where do i delete the users file?

You don't delete the users file unless you want to start from scratch.
You delete the individual user from that file.
The ULib_readme.txt, which reside in your root Garry's mod folder where you extracted the files to, make reference to the users file.


<your gmod server folder>/data/ULib/users.txt

If you had the following 3 users in that file.
Code: [Select]
"SomeGuy01"
{
"id" "STEAM_0:0:6543210"
"type" "steamid"
"groups"
{
"1" "superadmin"
}
}
"JamminR"
{
"type" "steamid"
"groups"
{
"1" "superadmin"
"2" "immunity"
}
"id" "STEAM_0:1:6016299"
}
"SomeGuy02r"
{
"id" "STEAM_0:1:0123456"
"type" "steamid"
"groups"
{
"1" "admin"
"2" "immunity"
}
}

 And you wanted to remove JamminR, you would start with the first quotation mark of that name (") and go to ending bracket above the next name, OR, if removing the last name in the file, the 2nd to last bracket of the file. This bracket when viewed in most text editors will line up with the first quotation mark of any other names.
The following would be what it looked like removing JamminR from the above example


Code: [Select]
"SomeGuy01"
{
"id" "STEAM_0:0:6543210"
"type" "steamid"
"groups"
{
"1" "superadmin"
}
}
"SomeGuy02r"
{
"id" "STEAM_0:1:0123456"
"type" "steamid"
"groups"
{
"1" "admin"
"2" "immunity"
}
}
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DannyMartinez

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Admin
« Reply #10 on: March 29, 2007, 12:47:06 PM »
K Thank You very much!   :)   ;D