Author Topic: users.txt  (Read 4645 times)

0 Members and 1 Guest are viewing this topic.

Sebastian Sinclair

  • Guest
users.txt
« on: February 26, 2007, 09:17:16 AM »
Can someone tell me what is wrong with my users file?

Code: [Select]
"Users"
{
"superadmin"
{
"sebsinclair_uk" "STEAM_0:0:5434032"
"evan31391" "STEAM_0:0:9783620"
}
}

My server won't recognize me. The Steam ID's are correct as are the users names. I've restarted the server after making changes. I have SecureServer installed and that recognizes me, but that uses a different users file... I know.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: users.txt
« Reply #1 on: February 26, 2007, 09:49:03 AM »
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

Sebastian Sinclair

  • Guest
Re: users.txt
« Reply #2 on: February 26, 2007, 11:22:27 AM »
Ok, Thanks. Should have searched before I posted  ::)

Anyway, Still can't get it to work. It adds me but yet it still says I dot have access. Here's the information I am required to post:

Status
Code: [Select]

hostname:  Seb Sinclair's Build Server - sebsinclair.8.forumer.com
version : 1.0.0.0/7 2992 secure
udp/ip  :  194.50.80.79:27015
map     :  freespace06_v2-1 at: 0 x, 0 y, 0 z
players :  1 (12 max)

# userid name uniqueid connected ping loss state
#  7 "Seb•Sinclair" STEAM_0:0:5434032 15:01 80 0 active

Print 1
Code: [Select]
> PrintTable ( ULib.ucl )...
passTimeout = function: 022724F8
addAccessCallback = function: 02265B80
checkAuth = function: 022720C0
callbacks:
1 = function: 0226E598
groups:
administrators:
allow:
deny:
superadmin:
allow:
deny:
immunity:
allow:
deny:
addUser = function: 022653A0
awaitingauth:
addGroup = function: 022707D0
authed:
Player [NULL]:
deny:
type = steamid
groups:
1 = administrators
account = sebsinclair_uk
id = STEAM_0:0:5434032
allow:
uniqueid = 3502846517
Player [1][Seb•Sinclair]:
deny:
type = steamid
groups:
1 = administrators
account = sebsinclair_uk
id = STEAM_0:0:5434032
allow:
uniqueid = 3502846517
users:
sebsinclair_uk:
deny:
type = steamid
groups:
1 = superadmin
2 = immunity
id = STEAM_0:0:5434032
pass =
allow:
evan31391:
deny:
type = steamid
groups:
1 = administrators
id = STEAM_0:0:9783620
pass =
allow:
query = function: 0226ACE0
removeUser = function: 02269558
probe = function: 02270440
checkPass = function: 02268268
callCallbacks = function: 02268280
L 02/26/2007 - 19:14:38: rcon from "88.108.11.182:4503": command "lua_run PrintTable ( ULib.ucl )"

Print 2(Didn't Seem To Work)
Code: [Select]
rcon lua_run PrintTable( util.KeyValuesToTable( file.Read( "/settings/users.txt" ) ) )
> PrintTable ( util.KeyValuesToTable ( file.Read ( /settings/users.txt ) ) )...
LS: Error running string:
LS: stdin:1: unexpected symbol near '/'
L 02/26/2007 - 19:18:09: rcon from "88.108.11.182:4503": command "lua_run PrintTable ( util.KeyValuesToTable ( file.Read ( /settings/users.txt ) ) )"

This is a rented "Dedicated Server".
ULX Version 3.02

My problem is that my server will not recognize me as an admin. I have reported this to my server admins, they are looking into it also. In the mean time I am trying to find a solution myself.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: users.txt
« Reply #3 on: February 26, 2007, 11:32:21 AM »
First, let me point out that the group for the level below superadmin is admin not administrators.

Now, it appears you are somehow being authed with a different group than you are listed in users.
Can you please paste the contense of "/settings/users.txt" and "/data/ULib/users.txt".
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

Sebastian Sinclair

  • Guest
Re: users.txt
« Reply #4 on: February 26, 2007, 12:50:41 PM »
users.txt from ../data/Ulib/
Code: [Select]
"Out"
{
"evan31391"
{
"id" "STEAM_0:0:9783620"
"type" "steamid"
"groups"
{
"1" "superadmin"
"2" "immunity"
}
}
"sebsinclair_uk"
{
"type" "steamid"
"groups"
{
"1" "superadmin"
"2" "immunity"
}
"id" "STEAM_0:0:5434032"
}
}

users.txt from ../settings/
Code: [Select]
"Users"
{
"superadmin"
{
"sebsinclair_uk" "STEAM_0:0:5434032"
"evan31391" "STEAM_0:0:9783620"
}
}

Comparing those two, I can see that the file from data/Ulib is trying to add evan31391 to a group that does not exist in the file in settings?

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: users.txt
« Reply #5 on: February 26, 2007, 01:02:08 PM »
Everything there appears to be correct. I'm not sure where the administrators group is coming from, but that looks like the problem.
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

Sebastian Sinclair

  • Guest
Re: users.txt
« Reply #6 on: February 26, 2007, 01:25:38 PM »
Ok, I have fixed it. I had done many times, but I re-installed ULX. I re did the users.txt in settings and now it works.

Many thanks for your help.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: users.txt
« Reply #7 on: February 26, 2007, 01:33:24 PM »
Glad you got it working. If you ever run into other problems please feel free to ask for more help. Also please check the bug tracker http://www.ulyssesmod.net/bugs before posting about any errors, and if it is already reported then simply add any addidional information you may have as a note on that bug report.
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 Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: users.txt
« Reply #8 on: February 26, 2007, 01:47:06 PM »
Hmm I don't like the null entity in your authed users. It's supposed to remove users when they disconnect, how did it hold onto the entity when it went invalid? Maybe this was part of the problem.
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: users.txt
« Reply #9 on: February 27, 2007, 01:40:29 PM »
I've always had those NULL Entities show up in authed, and have never had them cause any problems. Whenever checking authed it checks with the player object if I'm not mistaken, and as such those extra NULL entities should cause no problems, except to take up a small amount of memory. (Unless by some insane circumstance an new player happens to join and become the Entity that the admin was previously.)
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