Author Topic: Group permssions not working correcly  (Read 3603 times)

0 Members and 1 Guest are viewing this topic.

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Group permssions not working correcly
« on: March 13, 2015, 03:39:35 PM »
SO I installed Ulx on my server. I added myself as a super admin and my friend as admin however, everytime I change the gamemode, if I have to restart the server, or even if the server has to change levels we loss the ability to use any commands! I have to re-add us in to the groups from the console in order to get the commands working again. I've checked and our user information is not being erased from the data/ulib/user.text file so I don't know why this is happening!

Also I'm relatively new to this so any help would be nice!
« Last Edit: March 13, 2015, 03:42:43 PM by Lunar Wing »

Offline Stranger Danger

  • Newbie
  • *
  • Posts: 24
  • Karma: 2
Re: Group permssions not working correcly
« Reply #1 on: March 13, 2015, 04:03:07 PM »
Is it when the server restarts or when you rejoin?
Set your rank and type retry into console, do you lose your rank?

For this problem make sure you follow these guidelines here or else you might be ignored. http://forums.ulyssesmod.net/index.php/topic,383.0.html
« Last Edit: March 13, 2015, 04:16:29 PM by Stranger Danger »

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #2 on: March 13, 2015, 10:00:10 PM »
I have followed that to a T. the issue is still there. Every time my server restarts, all groups lose access to the ulx commands. Its as if everyone gets set back to the basic user group. However they are still listed within their respective group. (I'm still listed as super admin)

This happens when the server is restarted, the game mode is changed, and even if the map is changed.

The only way I can fix this is to re-add the user again to the group using the console.

I have attached the debug info

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Group permssions not working correcly
« Reply #3 on: March 14, 2015, 01:20:08 AM »
Did you add yourself to the default users.txt in garrysmod? Cause it looks like it, and that may be an issue.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Group permssions not working correcly
« Reply #4 on: March 14, 2015, 10:38:30 AM »
Default file should work fine, unless the default file is set one group, and you're trying to change to another group.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #5 on: March 14, 2015, 10:57:37 AM »
This is my user.txt file. I made sure the Steam ID's are correct.

"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"
   {
      "Lunar Wing"         "STEAM_0:1:41718368"
   }
   
   "admin"
   {
      "Fear The Pink"         "STEAM_0:1:81095867"
   }

}

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Group permssions not working correcly
« Reply #6 on: March 14, 2015, 01:52:55 PM »
Default file should work fine, unless the default file is set one group, and you're trying to change to another group.

I like eliminating every variable when testing. It should cause no issues, but I've had code fail because of silly stuff like that before.

Lunar, try removing yourself from the users.txt file and change the /data/ulx and /data/ulib folders to ulx.old and ulib.old then restart your server. You will have to readd yourself to the group using rcon, but this allows you to see if it is the users.txt or some configuration causing the issue.

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #7 on: March 14, 2015, 06:43:03 PM »
Ok so. by following what you ask lynx, my server recreated the ulib and ulx folders. I removed my name from the users.text but I am unable to add myself using the rcon password. I get the following error:
Unable to connect to remote server (192.168.1.119:27015)
If I add myself using the srcds console using [ulx adduser "Lunar Wing" superadmin] I am set to superadmin until the server restarts or changes level.

I have reinstalled my server for scratch. Reinstalled my maps, game modes, and add ons and I am still having issues.

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Group permssions not working correcly
« Reply #8 on: March 14, 2015, 06:46:33 PM »
Are any lua errors showing up in the srcds console? One tip is to add "lua_log_sv 1" to your server.cfg and it will log any lua errors the server outputs

Do a debug while you are a superadmin and then again after it restarts and you lose it (so 2 debugs) and upload them. The biggest issue in helping is being unable to recreate the issue, so gotta make due with debugs :c

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #9 on: March 14, 2015, 07:44:57 PM »
I have debugged just as the server was started up, after I made myself a super admin, then after the map was changed.

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #10 on: March 14, 2015, 11:17:55 PM »
I realized that the debug info gets overwritten each time so Im redoing them for you guys

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Group permssions not working correcly
« Reply #11 on: March 14, 2015, 11:39:01 PM »
Biggest thing I see is that you are running the older version of ULX. A new update was released a few days ago (ULX 3.62)

Other than that you added yourself back to the gmod default users.txt

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #12 on: March 14, 2015, 11:43:54 PM »
Didn't realize there was an update. Ill do that and see what happens

Offline Lunar Wing

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Group permssions not working correcly
« Reply #13 on: March 15, 2015, 10:30:08 AM »
It worked. I feel like an idiot for not doing the basic "Update" step lol. Thanks guys!

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: Group permssions not working correcly
« Reply #14 on: March 15, 2015, 06:32:50 PM »
Glad to hear! For some it seems the update hasn't worked to fix this issue, but I'm glad it worked for you.