Author Topic: Access Doesnt work  (Read 3827 times)

0 Members and 2 Guests are viewing this topic.

IMPOSTING

  • Guest
Access Doesnt work
« on: January 05, 2007, 07:44:23 PM »
Ok Im trying to run a Dedicated Server and Im using UlX 3.0 and Ulib 2.1. I added myself as superadmin in users.txt in garrysmod/settings. Everytime I join the dedicated server ULX doesnt add me as admin and the garrysmod users.txt doesnt reconize me as superadmin, so whenever im on my server I cant do anything that requires access because ULX wont reconize me because Garrys Mod wont reconize me. What can I do to make both work? Any Help Is Much Appreciated.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Access Doesnt work
« Reply #1 on: January 05, 2007, 07:49:02 PM »
Read the sticky
Experiencing God's grace one day at a time.

IMPOSTING

  • Guest
Re: Access Doesnt work
« Reply #2 on: January 05, 2007, 08:04:39 PM »
I did the commands in console and got this

Code: [Select]
> PrintTable( ULib.ucl )...
passTimeout = function: 02554C28
addAccessCallback = function: 02554C58
checkAuth = function: 02554C10
callbacks:
1 = function: 02554FB8
groups:
admin:
deny:
allow:
members:
1 = garry
2 = user2
superadmin:
deny:
allow:
members:
1 = garry
2 = vanthepimpman
addUser = function: 02554BB0
awaitingauth:
addGroup = function: 02554B98
authed:
users:
garry:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:7099
pass_req = false
pass =
allow:
user2:
deny:
type = steamid
groups:
1 = admin
id = STEAM_0:1:855035
pass_req = false
pass =
allow:
vanthepimpman:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:855035
pass_req = false
pass =
allow:
query = function: 02554C70
removeUser = function: 02554BC8
probe = function: 02554BE0
checkPass = function: 02554BF8
callCallbacks = function: 02554C40

this is from the users one

Code: [Select]
> PrintTable( util.KeyValuesToTable( file.Read( "../settings/users/txt" ) )...
LS: Error running string:
LS: stdin:1: ')' expected near '<eof>'

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Access Doesnt work
« Reply #3 on: January 05, 2007, 08:33:53 PM »
Well you forgot to use the status command, but it looks like you forgot a number off your steamid.
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Access Doesnt work
« Reply #4 on: January 05, 2007, 08:52:24 PM »
It may also have something to do with you having two users with the same steamID and different access. Try removing user2 from your settings/users.txt and data/ULib/users.txt.

@Megiddo: I fixed a typo in the last command in the stickey. users/txt => 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

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Access Doesnt work
« Reply #5 on: January 06, 2007, 02:15:54 AM »
Megiddo,
 Also, the example at http://garrysmod.com/wiki/?title=Admin#Dedicated_Servers actually state that having yourself in both Superadmin and Admin won't "significantly decrease" level. Though it might for ULX, perhaps we should make it so that it won't, since the access instructions we're sending them to for now state it won't?

"Users"
{
   "superadmin" //This is a user group. Groups are useful to LUA coders.
   {
      "garry"         "STEAM_0:1:7099"    //Garry is a user in the superadmin group.
      "User2"         "STEAM_0:1:8001337" //To be the server admin, your Steam ID should go here
   }

   "admin" //Another user group.
   {
      "garry"         "STEAM_0:1:7099"    //Your ID could go here as well without a significant decrease in admin power.
   }
}
"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: Access Doesnt work
« Reply #6 on: January 06, 2007, 07:35:34 AM »
JamminR,
    That is just confusing wording on the part of the tutorial. It's not saying you won't get a significant decrease in admin power if you put it in both. It's saying that putting your self as admin will still give you many admin powers just not all that superadmin gets. The problem here however is that he doesn't just have his steamID in both, but a different name on each, so ULib/ULX recognizes it as two users. Again, this may have nothing to do with the actuall problem.

A check for duplicate steamids on different names when importing would be a good idea. Although I don't see any way to accuratly decide which to keep. Perhapse we ignore both and pop an error saying what the problem is.
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: Access Doesnt work
« Reply #7 on: January 06, 2007, 05:08:21 PM »
Hmm those instructions are wrong because GM10 will only let a user have one access level. Perhaps we should change them? (I'm not good with tutorials, anyone else want to volunteer?)
Experiencing God's grace one day at a time.

Offline amburgers

  • Newbie
  • *
  • Posts: 33
  • Karma: -12
Re: Access Doesnt work
« Reply #8 on: January 06, 2007, 06:21:43 PM »
i made one i think its easy o and it works for me to put my name in both places