This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Run Eggdrop as root.

Old posts that have not been replied to for several years.
Locked
User avatar
firewall
Voice
Posts: 13
Joined: Thu Oct 07, 2004 8:31 pm
Location: Brazil
Contact:

Run Eggdrop as root.

Post by firewall »

I was trying to run a bot in my root account and I received it:

[xx:xx] * ERROR: Eggdrop will not run as root!

I need to run my eggdrop as root, and I will not have problems with this...
So, how can I run it as root in my computer?
I'm waitin for answers, thanks...
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Eggdrop has security issues, therefore it is not permitted to be run directly from a root. Neither normal users are allowed to IRC as root. Use a normal shell account.

If you have root access you can definately create a shell account? am I right?
No one can help you with this; its the way how the coders coded the eggdrop. However if you know C and can tweak the source code then you might be able to work-up something, but I don't recommend or suggest that even if you are capable of doing so.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Remove 2 lines from main.c, thats all :)

Code: Select all

  if (((int) getuid() == 0) || ((int) geteuid() == 0))
    fatal("ERROR: Eggdrop will not run as root!", 0);
Que?
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Keep in mind what awyeah said...
awyeah wrote:Eggdrop has security issues, therefore it is not permitted to be run directly from a root. Neither normal users are allowed to IRC as root. Use a normal shell account.
There are very good reasons why eggdrop should not be run from the root directory, as I'm sure you will quickly discover if you apply that hack...
User avatar
firewall
Voice
Posts: 13
Joined: Thu Oct 07, 2004 8:31 pm
Location: Brazil
Contact:

Post by firewall »

Hmm.
Ok, I will use Eggdrop in a normal account and not as root.
Thanks for all u and the advertisements :)
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

firewall wrote:Hmm.
Ok, I will use Eggdrop in a normal account and not as root.
Thanks for all u and the advertisements :)
FYI, many networks do not allow connections from "root" idents. In any case, running eggdrop as root is a bad idea :)
Locked