ULX

Author Topic: Make superadmin unremovable  (Read 3712 times)

0 Members and 1 Guest are viewing this topic.

Offline nogger

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Make superadmin unremovable
« on: January 15, 2014, 11:40:58 PM »
I removed it and it screwed up everything.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Make superadmin unremovable
« Reply #1 on: January 15, 2014, 11:53:05 PM »
Okay, now you're just being dumb.

It specifically asks if you are sure about deleting it.

Your fault.
Out of the Garry's Mod business.

Offline Th3_§mp3r0r

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
Re: Make superadmin unremovable
« Reply #2 on: January 16, 2014, 03:19:30 AM »
I don't know if this would work, but download a fresh copy of ulx and ulib (install it to a new server, or in your own client and start a server).
Then go to data/ulib/ and open groups.txt . It has the default groups defined in there. Copy the superadmin-section to clipboard.

Stop your Server first!
Then open there the same file (data/ulib/groups.txt) and paste it in there.
Then start the server.

You should have a superadmin group now.

regards

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Make superadmin unremovable
« Reply #3 on: January 16, 2014, 09:34:01 AM »
I removed it and it screwed up everything.

That is why people say you need to have some basic knowledge or common sense in order to run a server, you sir, fail in both.


Offline Th3_§mp3r0r

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
Re: Make superadmin unremovable
« Reply #4 on: January 16, 2014, 09:37:29 AM »
Everyone starts at a beginner.

Here's the superadmin rank, place it in data/ulib/groups.txt (stop server edit it, start it):

"superadmin"   
{
   "inherit_from"   "admin"
   "allow"   
   {
      "ulx addgroup"
      "ulx adduser"
      "ulx adduserid"
      "ulx addusermysql"
      "ulx banid"
      "ulx cexec"
      "ulx deletewarnings"
      "ulx ent"
      "ulx exec"
      "ulx groupallow"
      "ulx groupdeny"
      "ulx hiddenecho"
      "ulx loadoutadd"
      "ulx loadoutremove"
      "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 print"
      "ulx rcon"
      "ulx removegroup"
      "ulx removeuser"
      "ulx removeuserid"
      "ulx renamegroup"
      "ulx restrict"
      "ulx setgroupcantarget"
      "ulx setlimit"
      "ulx settime"
      "ulx tempadduser"
      "ulx tempadduserid"
      "ulx unrestrict"
      "ulx userallow"
      "ulx userallowid"
      "ulx userdeny"
      "ulx userdenyid"
      "ulx voteecho"
      "xgui_gmsettings"
      "xgui_managebans"
      "xgui_managegroups"
      "xgui_svsettings"
      "xgui_urs"
   }
}

NOTE: This is my data, maybe a few access rights doesn't exist at your server. So it's much better to have a clean copy of ulx (as i said).
« Last Edit: January 16, 2014, 09:40:05 AM by Th3_§mp3r0r »

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: Make superadmin unremovable
« Reply #5 on: January 16, 2014, 01:08:34 PM »
Guys, there's no place for making fun of him for messing up. Yes, he screwed up, you telling him so doesn't help him keep from making the same mistakes. That being said, at least Th3_§mp3r0r was nice enough to help.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Make superadmin unremovable
« Reply #6 on: January 16, 2014, 02:27:24 PM »
Even better yet, there's a FAQ we have for resetting ULX to factory defaults.
We made a command for it in ULX to be run from console.
Reinstalling won't fix it, because ULX will just see your custom already edited removed groups.txt file.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Make superadmin unremovable
« Reply #7 on: January 16, 2014, 03:14:17 PM »
Guys, there's no place for making fun of him for messing up.

I'm talking about how he wants superadmin unremovable.
He made a mistake but doesn't want to correct it himself.

I've told him on another thread to go to the FAQ, and he replied with

I didnt find anything in FAQ and i do have a console,
but if it matters its a free server (srcds)

No, instead of correcting it himself with help from others, he posts a suggestion which will
correct it for him.
Out of the Garry's Mod business.

Offline Th3_§mp3r0r

  • Newbie
  • *
  • Posts: 10
  • Karma: 1
Re: Make superadmin unremovable
« Reply #8 on: January 17, 2014, 03:36:58 AM »
No, instead of correcting it himself with help from others, he posts a suggestion which will
correct it for him.
Well at least I think that is just a much better solution than just resetting everything.
And cmon, we all are newbies when we start a thing. Knowledge and wisdom will come with the time. So why not helping him.
And ok, i didn't know he had a second thread with the same problem. But like I said, I think my solution is still nicer ;-)

regards

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Make superadmin unremovable
« Reply #9 on: January 17, 2014, 05:52:10 PM »
We're not going to make superadmin unremovable, because someone may legitimately want to do that. That's why we have the warning. ;)
Experiencing God's grace one day at a time.