Groups

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Groups

Post by I_Died_Once » Mon Mar 28, 2005 5:02 pm

Having trouble finding the wiki on groups. Looking to find how to implement them, details on permissions, and how to assign people to 'em. All that. I'm sure its sitting right under my nose, but I can't find it.

Much love
...This has been a recording.

User avatar
SportChick
Private First Class
Private First Class
Posts: 300
Joined: Wed Jan 21, 2004 2:57 am
Location: California
Contact:

Post by SportChick » Mon Mar 28, 2005 6:02 pm

Groups must be created by a board admin. There is a forum called "request your groups here" - go there and ask for what you want. Once you've done that, you'll be set up as the group mod and it will be obvious (and easy) to add/delete people from there.
Image

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Mon Mar 28, 2005 6:55 pm

There are also two groups that are defined automatically, EVERYONE and VERIFIED. Add those two groups to your groups file and you can give (or take away) their permissions.

More on the details of groups can be found at the bottom of the BZFS man page: http://my.bzflag.org/bzfman.cgi?bzfs.6s

User avatar
DTRemenak
General
General
Posts: 625
Joined: Thu Jan 16, 2003 4:54 am
Location: U.S.
Contact:

Post by DTRemenak » Mon Mar 28, 2005 9:38 pm

OK, basics first:

There are two kinds of groups, local and global.

Global groups are created here, and are usually SERVERNAME.GROUPNAME; local groups are created on your server, and are of the form LOCAL.GROUPNAME.

Global groups
People are added to global groups from the group control panel on this board, by the moderator of the group (usually whoever requested the group's creation).

Local groups
People are added to local groups by the server admin using the /setgroup command or adding the group name manually in the userdb file (pointed to by the -userdb option in bzfs).

Default groups
There are three default groups, which can never be removed, but can have their permissions changed:
LOCAL.ADMIN: full priviledges, just like using /password.
VERIFIED: has authenticated himself with the correct password
EVERYONE: uhh....everyone.

Permissions
Permissions from both kinds of groups are set by editing the groupdb file (pointed to by the -groupdb option in bzfs). The format of this file is:
GROUP: PERMISSION [PERMISSION [PERMISSION ...]]]

Code: Select all

LOCAL.TRUSTED: SETVARS KICK BAN PLAYERLIST
FRIENDLYSERVER.COPS: KICK BAN PLAYERLIST 
LOCAL.COPS: KICK SHORTBAN PLAYERLIST
EVERYONE: SPAWN TALK ...
Using groups
1. Create a userdb and groupdb file (they can be blank for now).
2. Enable the -userdb and -groupdb options for bzfs.
3. Add group permissions to your groupdb file, as seen above. Only bother defining EVERYONE, VERIFIED, or LOCAL.ADMIN if you want to change their permissions, usually the defaults are good enough and you can just add whatever groups you need. I only have two groups in my groupdb files, LOCAL.TRUSTED (for local cops) and DEVELOPERS (a global group for the devs).
4. Add users to any local groups you've created, either by editing the userdb file or using the /setgroup command.

User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA » Tue Mar 29, 2005 4:50 am

I told you vader that you needed to request the groups at that forum and I also told you that DTRemenak knew how to do it...

User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Post by I_Died_Once » Tue Mar 29, 2005 5:09 am

Could someone post or private message me some sample groupdb and userdb files in actual use so I can compare and get it down?

Thanks
...This has been a recording.

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Mar 29, 2005 2:39 pm

Here's groups.txt file.

As you can see, I have 3 groups. EVERYONE (not registered players), VERIFIED (registered players) and RPGCOPS (defined on this board). Each group gets special permissions.
Attachments
groups.txt
Happy grouping.
(370 Bytes) Downloaded 93 times

Post Reply