Operblock Examples, please?
Operblock Examples, please?
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!
- Ares
-
- Posts: 18
- Joined: Mon Oct 03, 2005 12:45 pm
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;
};
};
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;
};
};
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?
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?
- Ares
-
- Posts: 18
- Joined: Mon Oct 03, 2005 12:45 pm
-
- Head of Support
- Posts: 2086
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Because I am feeling nice:
That oper block gives every permission with the least amount of flags.
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;
};
};
example with old flags
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.
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.