Page 1 of 1
Operblock Examples, please?
Posted: Sun Nov 06, 2005 1:27 am
by Ares
I'm trying to understand the use of the oper block (o line) and i'm wondering if someone could post some examples of operblocks that are in use right now? I learn best by example, and although i've read the documentation, and have my own oper block written up, i'd benefit from seeing how others have their oper blocks set up, or other oper blocks in use. Thanks!
Posted: Sun Nov 06, 2005 1:34 am
by onesikgypo
this one is fro like one of the super admins
oper NICKWASHERE {
class clients;
from {
userhost *@*;
};
password "pass.was.here";
flags
{
netadmin;
can_die;
can_restart;
can_wallops;
can_globops;
can_localroute;
can_globalroute;
can_localkill;
can_globalkill;
can_kline;
can_unkline;
can_localnotice;
can_globalnotice;
can_zline;
can_gkline;
can_gzline;
get_host;
can_override;
can_setq;
can_addline;
can_dccdeny;
};
};
Posted: Sun Nov 06, 2005 1:41 am
by Ares
Thanks for the reply, onesikgypo. Now my question for you is...
is it necessary to have all of those flags listed since by default certain flags give other flags? For example:
netadmin, according to the help doc, comes with can_wallops, so is it necessary (or just overkill) to add the flag again?
Posted: Sun Nov 06, 2005 1:43 am
by onesikgypo
probably not, but i made this server when i wuz still a n00b so i jus added everythin jus in case, and since it worked, i havent been bothered to make it smaller, but yeh, jus get the ones u need
Posted: Sun Nov 06, 2005 1:46 am
by Syzop
Learn by example? Guess what: doc/example.conf :P
Posted: Sun Nov 06, 2005 2:00 am
by Stealth
Because I am feeling nice:
Code: Select all
oper Stealth {
class clients;
from {
userhost *@192.168.1.*;
userhost *@localhost;
};
password "3Bo9d0faP3YVo" { crypt; };
flags {
netadmin;
can_addline;
can_dccdeny;
can_die;
can_gkline;
can_gzline;
can_restart;
can_zline;
get_umodew;
get_host;
can_override;
};
};
That oper block gives every permission with the least amount of flags.
Posted: Sun Nov 06, 2005 2:01 am
by Ares
Hehe. I getcha, onesik.
Syzop... the point of the post is for other examples outside of the example configs that came with the package. The more sources one has, the better his potential aquisition of knowledge.
example with old flags
Posted: Sun Nov 06, 2005 5:43 am
by Ping
oper nick {
class clients;
from {
userhost username@*;
};
password jkgYGygLnj { crypt; };
flags oOaANrDRhwgcLkKbBnGztZWHvqXd;
snomask cFkejvGnqsSo;
maxlogins 1;
};
crypt method
just one operlogin for user
this linea is for netadmin
snomask(important for me) on operlogin
Regards.
Posted: Mon Nov 07, 2005 1:25 am
by Jason
I should run password crackers on these crypts.
Stealth lives because hes local ips only
Posted: Mon Nov 07, 2005 5:27 am
by Stealth
Jason, I will freely say my password is I<3B00bz