ULX

Author Topic: Custom groups/permissions not working  (Read 11813 times)

0 Members and 1 Guest are viewing this topic.

Offline Strummer

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Custom groups/permissions not working
« on: September 12, 2010, 01:05:10 AM »
Hello, I recently set up ULX in the server, everything seems to be working all right, except for custom groups and permissions.

The scenario I have is that I want to have a paid admin group separate from admins and superadmins, with less powers. I run DarkRP, so I don't want the Falco Prop Protection reading paid admins as admins, because I don't want them to be able to physgun or toolgun world/blocked props, but I still want superadmins to retain that ability. I also don't want them to have access to certain other admin commands.

So, I thought, hey, create a group why don't I, without inheritance. So I did that. I tried adding permissions first via the console, with ulx groupallow, and secondly from the groups.txt file directly, with the server shut down. Neither worked. I moved myself into the paidadmin group to test basic functions like kick, or slap, and it says I don't have access.

So, I made another test group, moved myself there, with no nonstandard permissions, and in console, typed "rcon ulx userallow strummer kick"

It said it granted me that permission, however, as expected, I went to test it out, and it said I didn't have access to that command.

I have searched for hours on this, and I can't seem to find the solution.

I just need an admin group for donators that doesn't inherit permissions from admin or superadmin, because if I do that, then paid admins would be able to toolgun and phygun world and blocked props, which I would prefer be a superadmin/trusted admin only thing. I have been on servers where this is done, so I know it is possible.

Any help would be greatly appreciated, thanks!


Strummer

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Custom groups/permissions not working
« Reply #1 on: September 12, 2010, 09:06:58 AM »
Userallow is no longer used in our newer SVN code. Though I can tell from your post you aren't using SVN (since userallow said it added the access), I'd encourage you to start using groupallow only.

As for why it didn't work for you;
"Userallow" (or as it should be, "groupallow") was written to give any user (group) access to any ULib based command. With your example, it has no dea that you want "ulx" kick.
So, you should use;
Code: [Select]
ulx groupallow <your_donation_group> "ulx kick"

Make sure you use "ulx <command>" for the commands you want to give that group.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Strummer

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Custom groups/permissions not working
« Reply #2 on: September 12, 2010, 12:55:46 PM »
Got it, I thought it assumed I was using ulx commands, thanks. And yeah, if I remember correctly I am using 3.4 or something rather. I didn't know how svn would work when it updated, if I would have to re-setup everything every time it replaced a file or something. But groupallow is still in the svn right? In case I do decide to go that route?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Custom groups/permissions not working
« Reply #3 on: September 12, 2010, 01:05:38 PM »
Yes, Groupallow is still used. The biggest change to most 'end' users is that immunity totally changes.
If you're just starting with ULX (and welcome to Ulysses if you are), I'd recommend starting with SVN ULib and ULX.
This way, you won't get familiar with things that are currently removed/changed totally in SVN.
SVN also gives you access to XGUI (see the releases area). Stickly Man is working hard on it. Its going to be the new GUI for ULX. (but ULX will still allow server control through console!!)
Most custom group and user files convert automatically the first time you run SVN.
When they don't, more often than not, it's because it was badly manually edited, punctuation done wrong, etc.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming