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.

inittab

Old posts that have not been replied to for several years.
Locked
R
RobV

inittab

Post by RobV »

Hello,
I would like to use inittab rather than crontab for starting my eggdrop. And the only help I can find is a forum entry about adding this line to the inittab:

egg1:23:respawn:/usr/bin/sudo -u eggdropusername /command/to/start/eggdrop

which doesn't work when I sub in all my path and user info. I tried to just run the sudo line and this is what I get:
[robv@localhost robv]# /usr/bin/sudo -u myacct /home/myacct/eggdrop/eggdrop
[14:06] LANG: No lang files found for section core.

Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[14:06] --- Loading eggdrop v1.6.17 (Wed Oct 6 2004)
[14:06] * MSG534
[robv@localhost robv]#
So I guess that would probably be my problem.

I can run the eggdrop fine from myacct, but as you can see if I'm in my root account trying to execute it using sudo (or su) the above happens. I'm definately a linux noob. Any help woul be great. Thanks.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Eggdrop cannot be run from root from what I've read elsewhere. Is also a security risk anyway.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

sudo allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. [...]
so, it's something wrong with the "lang" files, check them out.
Once the game is over, the king and the pawn go back in the same box.
R
RobV

yea

Post by RobV »

Alchera: Isn't that why iIm using sudo?

ceasar: Thanks much. I'll have a look around in my conf I guess. For now I'm using the crontab :^/
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

RobV: I really should get some more sleep some days. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Locked