There is no REHASH

These are old archives. They are kept for historic purposes only.
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

There is no REHASH

Post by unix4linux »

Hi All,

Need a little help. Running unreal on my linux server and installed from source. Everything is fine except that when I make changes to any of my config files, I have to kill the server and start it back up because there is no rehash command. Is this command separate from the unreal package? How can I obtain a copy of it. I did a search on my server and there is no rehash anywhere to be found.

Also, how do I stop/start/restart the server properly instead of killing the process? I don't see any restart/stop/start options or no init scripts :-\

Thanks in advance
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: There is no REHASH

Post by Jobe »

As an /oper while connected to your IRCd, try /rehash
Your IP: Image
Your Country: Image
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

Hmmm...ok..I am the admin or set myself as the admin but didn't set any oper's. I tried to do /rehash as my admin user and said command not found. Do I need to make my username as an oper?

I guess to be a real admin, i need to add myself as an oper with the A flag, is that correct?

Thanks for the response
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: There is no REHASH

Post by Jobe »

You connect to your server using an IRC client.

Then you /oper <user> <pass> to gain your oper priviledges.

Then you type /rehash.
Your IP: Image
Your Country: Image
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

Jobe1986 wrote:You connect to your server using an IRC client.

Then you /oper <user> <pass> to gain your oper priviledges.

Then you type /rehash.
I typed in /oper /op /opers with username and passwd and it wouldn't work. I get a "no such command and thats from using several different irc clients :-\
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: There is no REHASH

Post by Jobe »

There is not one client I know that will give "unknown command" for /oper. As for the other 2 commands you listed that have nothing to do with /oper'ing, those I can understand. Common reasons for /oper not working include you not configuring your IRCd properly for example by adding an oper block.
Your IP: Image
Your Country: Image
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

here is what my oper block looks like...what should I change or did wrong?

oper my_user_name {
class clients;
from {
userhost *@*;
};
password "my_passwd";
flags {
can_rehash;
helpop;
can_globops;
can_wallops;
can_localroute;
can_localkill;
can_kline;
can_unkline;
can_localnotice;
can_globalroute;
can_globalkill;
can_globalnotice;
global;
can_dccdeny;
can_setq;
admin;
services-admin;
netadmin;
can_zline;
can_gzline;
can_gkline;
get_host;
};
};

Thanks for the help :-)
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: There is no REHASH

Post by Jobe »

Nothing wrong that I can see but I may have missed somthing.

Anyway from what you have there to gain your priviledges on IRC type /oper my_user_name my_passwd
Your IP: Image
Your Country: Image
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

:-\...yeah for some reason I have tried xchat, naim, pidgin and finch for IRC client and still can't run /oper. I continue to get "No such command". I can do /list /whois etc but not oper and not rehash either :-\

there must be something in the config file....if I find it...i'll def let you guys know but this is the first time I am setting up an IRC so it is quite a challenge
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: There is no REHASH

Post by Jobe »

How about trying /quote oper or /raw oper depending on the client.

If neither work then youre either using a modified copy of UnrealIRCd, or you need to download and recompile from scratch again. Since /oper is a default core command in UnrealIRCd and is most certainly there in the official downloads.
Your IP: Image
Your Country: Image
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

that didn't work...looks like i'll have to recompile from scratch...it's no biggie, i'll just save my .conf file so it shouldn't be a big deal :-)

I'll let you guys know if recompile helps
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

Small discovery...to run rehash, I had to use the following command on my xterm in linux:

./unreal rehash

Trying to see if there is some other way of using the oper command

Will let you guys know
Casper
Posts: 338
Joined: Sun Jul 08, 2007 7:44 am
Location: The Netherlands

Re: There is no REHASH

Post by Casper »

Please don't tell me you were trying to do everything from the terminal... All those commands giving were meant to be used on an IRC client...
Ex Network-Administrator
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: There is no REHASH

Post by unix4linux »

Casper wrote:Please don't tell me you were trying to do everything from the terminal... All those commands giving were meant to be used on an IRC client...
I did use them on an IRC client. Nothing worked. So, upon some digging on my server, I found the unreal binary and ran it..the usage suggested start|stop|restart|rehash so I tried rehash with it. This was the only thing I ran from the terminal...everything else was tried from the client
Casper
Posts: 338
Joined: Sun Jul 08, 2007 7:44 am
Location: The Netherlands

Re: There is no REHASH

Post by Casper »

So, let me get this straight. Opering up by /oper <username> <password> (without the < and >) won't work? If that doesn't work, I wouldn't know any solution left for this issue..
Ex Network-Administrator
Post Reply