| RahmetLi | 05 Mart 2023 05:49 | UnrealIRCd-5 Rütbe Eklentisi SSH Login olduktan sonra.
unrealircd-5*/src/updconf.c
kod: altına kod: altına kod: PHP- Kodu: if (contains_flag(flags, flagscnt, "netadmin"))
operclass = "netadmin"; altına PHP- Kodu: else if (contains_flag(flags, flagscnt, "rootadmin"))
operclass = "rootadmin"; kod: PHP- Kodu: if (!strcmp(operclass, "netadmin"))
vhost = upgrade.netadmin_host; altına PHP- Kodu: else if (!strcmp(operclass, "rootadmin"))
vhost = upgrade.rootadmin_host; kod: PHP- Kodu: if (!strcmp(operclass, "netadmin"))
swhois = "is a Network Administrator"; altına PHP- Kodu: else if (!strcmp(operclass, "rootadmin"))
swhois = "is a Root Administrator"; kod: PHP- Kodu: else if (!strcmp(cepp->ce_varname, "netadmin")) {
safe_strdup(upgrade.netadmin_host, cepp->ce_vardata);
} altına PHP- Kodu: else if (!strcmp(cepp->ce_varname, "rootadmin")) {
safe_strdup(upgrade.rootadmin_host, cepp->ce_vardata);
} Daha Sonra Tekrar unrealircd-*/doc/technical/operclass.default.conf
( Burada değişiklik yapmamızın sebebi, operclass yetkilendirmesi burada sabitlenmiştir.
Extradan conf oluşturup yetkilendirme yaptırmamıza gerek yoktur.)
kod: PHP- Kodu: /* Network Administrator */
operclass netadmin {
permissions {
chat;
channel { operonly; see; override { flood; }; };
client;
immune;
self { getbaddcc; opermodes; set; };
server { opermotd; info; close; module; dns; rehash;
remote; description; addmotd;
addomotd; tsctl; };
route;
kill;
server-ban;
sacmd;
services;
};
}; altına PHP- Kodu: /* Root Administrator */
operclass rootadmin {
permissions {
chat;
channel { operonly; see; override { flood; }; };
client;
immune;
self { getbaddcc; opermodes; set; };
server { opermotd; info; close; module; dns; rehash;
remote; description; addmotd;
addomotd; tsctl; };
route;
kill;
server-ban;
sacmd;
services;
};
} kod: PHP- Kodu: /* Same as 'netadmin' operclass, but with OperOverride capabilities added */
operclass netadmin-with-override {
parent netadmin;
permissions {
channel { operonly; see; override; };
self { getbaddcc; opermodes; set; unkickablemode; };
};
}; altına PHP- Kodu: /* Same as 'rootadmin' operclass, but with OperOverride capabilities added */
operclass rootadmin-with-override {
parent rootadmin;
permissions {
channel { operonly; see; override; };
self { getbaddcc; opermodes; set; unkickablemode; };
};
}; make && make install ve sunucumuza restart atıyoruz.. |