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.

why not root?

Old posts that have not been replied to for several years.
Locked
O
Ohmu

Post by Ohmu »

ok, I am total n00b @ eggdrops so I want to know why I cant start my eggy from root ??

Ohmu
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

because it would be one massive security hole. anyone with +n would effectivly have full access to the root account under certain conditions
O
Ohmu

Post by Ohmu »

but how can I make it run eggy when my computer boots up?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

crontab or su -c
t
tomi

Post by tomi »

Hi,
I have the same problem. Could somebody tell me the right syntax to run the eggdrop when Iam logged in by root.
Thank you!
O
Ohmu

Post by Ohmu »

i think it was like: su -c "./eggdrop conf" user
t
tomi

Post by tomi »

thank you. Now i got this error:

Config File not loaded (not found, or error)

??
O
Ohmu

Post by Ohmu »

su -c "./eggdrop config_file" user

config_file = your eggdrop config
user = the user who will "run" the eggdrop
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Eggdrop will plain not run as root user.

The su -c trick is telling the OS to run eggdrop as another user, this it is not a work around.

Simpler methods would be to learn how to add a user, login as that user, then follow the compile and comfigure steps. Them from then on, use this user to launch the eggdrop, and/or setup the crontab.

For those that don't read the warnings plastered over most linux software.

You should never run any peice of software as rot, unless you know exactly what the software does. Nor should you run a peice of software, if you do not trust the manufacturers.
Locked