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.

chroot and runlevel

Old posts that have not been replied to for several years.
Locked
t
tobzter

chroot and runlevel

Post by tobzter »

ok hi there my first post on your nice forum...
1. i'd like to run eggdrop chrooted how?
2. i'd like to create an eggdrop rc-script how? eggdrop won't run as root and the executable can't be followed by userchange variables like -u (user) or sth.

i am using gentoo linux.. if this helps
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

edited
Last edited by Dedan on Mon Oct 06, 2003 11:26 am, edited 1 time in total.
I once was an intelligent young man, now i am old and i can not remember who i was.
t
tobzter

Post by tobzter »

jop that's exactly my problem.. how do i start eggdrop in a runlevel as a non-root... i don't wan't this crappy crontab start way
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Can i ask why you call it a crappy crontab start way.

Crontab is a defacto standard.

An rc-script is a one off thing, should your bot crash, you are manualy required to clear the error and restart start it.

Can I ask what benefits you hope to see out of a chroot start of eggdrop.

Other than the ability to startup and listen to ports below 1024, there is no real purpose.
t
tobzter

Post by tobzter »

sorry i didn't want to offend you crontab users ;)

i never heard eggdrop was declared as a save program that's why i would like to run it chrooted... maybe paranoia but i dislike any security holes...

and ok i see why you are using crontab as starter... nevertheless i want to know how to use eggdrop with a runlevel script... intending to for example use eggdrop only in a specific runlevel...
g
guppy
eggdrop engineer
Posts: 199
Joined: Mon Sep 24, 2001 8:00 pm
Location: Canada
Contact:

Post by guppy »

Make the startup script start up the bot using "su".

su eggdropuser -c "eggdrop eggdrop.conf"
Locked