Anope IRC Services

Anope Development => Modules => Topic started by: SamirBeh on February 02, 2014, 08:10:03 AM

Title: installing problem
Post by: SamirBeh on February 02, 2014, 08:10:03 AM
why i see these msg always

Quote
root@irc [~/Unreal3.2.10]# ./unreal start
Starting UnrealIRCd
WARNING: You are running UnrealIRCd as root and it is not
         configured to drop priviliges. This is _very_ dangerous,
         as any compromise of your UnrealIRCd is the same as
         giving a cracker root SSH access to your box.
         You should either start UnrealIRCd under a different
         account than root, or set IRC_USER in include/config.h
         to a nonprivileged username and recompile.
 _   _                      _ ___________  _____     _
| | | |                    | |_   _| ___ \/  __ \   | |
| | | |_ __  _ __ ___  __ _| | | | | |_/ /| /  \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | |    / | |    / _` |
| |_| | | | | | |  __/ (_| | |_| |_| |\ \ | \__/\ (_| |
 \___/|_| |_|_|  \___|\__,_|_|\___/\_| \_| \____/\__,_|
                           v3.2.10
                     using TRE 0.8.0 (BSD)

* Loading IRCd configuration ..
* unrealircd.conf:2: loadmodule modules/commands.so: failed to load: Cannot open module file: No such file or directory
[error] IRCd configuration failed to load
Possible error encountered (IRCd seemingly not started)

help me please
Title: Re: installing problem
Post by: Charles Kingsley on February 02, 2014, 08:12:02 AM
1) You're running it as root, you really shouldn't - it does this say in quite big letters.
2) This isn't an Anope problem, so you may find better help on a forum for unreal.
3) Does modules/commands.so exist?

If I was you, I'd reinstall Unreal properly and not use root.
Title: Re: installing problem
Post by: SamirBeh on February 02, 2014, 09:16:33 AM
every thing is oky now , but when i user these order cd services ./services

h see thise msg

Quote
WARNING: You are currently running Anope as the root superuser. Anope does not
    require root privileges to run, and it is discouraged that you run Anope
    as the root superuser.
[/b][/size][/color]
Title: Re: installing problem
Post by: Charles Kingsley on February 02, 2014, 09:18:16 AM
Read what I said before, using root is bad.

Please don't do this.
Title: Re: installing problem
Post by: SamirBeh on February 02, 2014, 09:38:56 AM
what's the way to add new user have all root power ?
Title: Re: installing problem
Post by: Charles Kingsley on February 02, 2014, 09:40:17 AM
You shouldn't be wanting to do that.

You should not be running anope/ircd as a root user, this just does not make sense.

Title: Re: installing problem
Post by: SamirBeh on February 02, 2014, 09:45:43 AM
so , what's the safe way to join server , more detils plz
Title: Re: installing problem
Post by: Charles Kingsley on February 02, 2014, 09:47:04 AM
You should create a user on your server, such as "irc" and then install both your ircd and services as this user.

Title: Re: installing problem
Post by: SamirBeh on February 02, 2014, 09:49:23 AM
fine how i can create a new user give me the order to do it
Title: Re: installing problem
Post by: Charles Kingsley on February 02, 2014, 09:50:14 AM
useradd -m irc
passwd irc (to set their password)

Then SSH into your system as the 'irc' user with the password.
Title: Re: installing problem
Post by: SamirBeh on February 02, 2014, 11:23:52 AM
root@irc [~/services]# useradd -m java
useradd: user java exists
root@irc [~/services]# passwd java java123
passwd: Only one user name may be specified.
root@irc [~/services]# passwd java as7ap123
passwd: Only one user name may be specified.


what's error ?
Title: Re: installing problem
Post by: Charles Kingsley on February 02, 2014, 11:26:07 AM
well, in the first instance it says the user already exists, so quite literally you cannot have two users with the same name can you?

If you run the command passwd java with no arguments it will prompt you for the password as setting it on the command line would be considered insecure/stupid.
Title: Re: installing problem
Post by: SamirBeh on February 02, 2014, 11:37:28 AM
 ??? ty