Difference between Userdb and Groupdb

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
User avatar
FangUp
Private First Class
Private First Class
Posts: 96
Joined: Fri Aug 21, 2009 2:53 pm
Location: Slovenia

Difference between Userdb and Groupdb

Post by FangUp » Thu Oct 06, 2011 6:55 pm

May i ask what is the diffrence between -Userdb and -Groupdb? i think -Userdb (which i am using) is way more practical, but from numbers of players here i seem to be thinking...does the Group one have better things?
To be or not to be. - W. Shakespeare
To bee or not to bee? I sure love Honee! - FangUp
Playing since 2005, with an unregistered nickname.

User avatar
SkillDude
Private First Class
Private First Class
Posts: 336
Joined: Sun Apr 01, 2007 4:50 pm
Location: United States

Re: Difference between Userdb and Groupdb

Post by SkillDude » Thu Oct 06, 2011 7:31 pm

UserDB keeps track of each player's groups that join. It keeps track of all LOCAL groups. So for example, if you add someone to the LOCAL.ADMIN group, the userdb file saves that. Later if you use that userdb elsewhere, the same user that logs in will have that group.

groupsdb lets you specify the groups. It actually kind of goes hand in hand with userdb, as you cannot get users into new groups without creating them first of all.

groupsdb has nothing to do with the users in the groups, but the permissions of the groups.

Hope that clarifies some things.

User avatar
blast
General
General
Posts: 4732
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Difference between Userdb and Groupdb

Post by blast » Fri Oct 07, 2011 12:09 pm

The groupdb defines the permissions that a group (local or global) has on the server. It does not define WHO is in those groups.

The userdb lets you put users into groups based on their callsign and is configured locally on your own server. It is not a good idea to use the userdb because of this. If someone changes their name here, they will lose their additional rights on your server. And then if someone takes their old name, they will now have that old user's extra permissions. This could lead to a Bad User(tm) doing Bad Things(tm) to your server.

If you use global groups, then you don't have to worry about name changes. With global groups, it will track the user by their BZID, not their username. If someone changes their name, they still have the same BZID. So, use global groups and a groupdb, and don't even bother with a userdb.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests