collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Security  (Read 2185 times)

0 Members and 1 Guest are viewing this topic.

Offline Hacre

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Security
« on: September 06, 2008, 02:45:25 pm »
Ok another one that I've had a shot at searching for and not found what I'm after..

How is security changed/controlled via BeBot?  Things like, I'd like to give Superadmin access to the !settings command, !leader is currently locked to Owner, etc.

How do I add new Admins/SAs via the bot interface?

Thanks

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Security
« Reply #1 on: September 06, 2008, 05:02:42 pm »
!commands is what you are looking for, which got OWNER access on default.

!leader should be set to LEADER access on default, been like that since quite a bit.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Security
« Reply #2 on: September 12, 2008, 09:43:41 pm »
!commands is what you are looking for, which got OWNER access on default.

IMHO default access should be SUPERADMIN or that should be configurable in the config file for first run. The first thing I do on a new BeBot install is to run the bot, kill it, and do a MySQL update to fix security:

UPDATE botname_access_control SET minlevel = 'SUPERADMIN' WHERE minlevel = 'OWNER';

Alternatively, there should be a command that will do this for the user. Clicking through and changing the access for each command across the different channels is too time consuming.

The only thing setting commands to owner does is protect the bot's account owner from installing a module that will read the BeBot config file and send the AO account username/password to someone on command. As the proper way to setup a command is to define the default access level we're not really protecting anything, someone malicious could code their password exposing module to just spam tells on connect, in a cron job, set the command to anonymous access, or even code themselves into the superadmin group.

I created the OWNER level for two reasons:
1. Absolutely impossible to ban the owner from the bot, thus even if they screwed up security totally they should still have access to fix it.
2. To display who was ultimately responsible for the Bot in the !about command.

In truth, anyone hard coded into the OWNER or SUPERADMIN fields is unbannable as no ban check is performed on OWNER or SUPERADMINS defined in the config file.

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: Security
« Reply #3 on: September 12, 2008, 10:12:40 pm »
to add admins and supers via the in game interface, it would be

ADMIN add ADMIN <toon>
ADMIN add SUPERADMIN <toon>

But as Glar said, these can be banned, whereas hard coding them in the conf file will prevent banning and or dropping.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 389
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal