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.

File owner problem?

Old posts that have not been replied to for several years.
Locked
F
FORTadmin

File owner problem?

Post by FORTadmin »

I'm feeling a little stupid right now. Thought this would be fairly simple, and the instructions were extremely good, but I messed up and need some advice.

I did everything, but when I ran ./eggdrop for the first time, it said I was running as root, which it refused to do. So, I changed to another user and tried to run it again (admin). It said I didn't have permissions to get into the directory.

So, I changed back to root, and chowned all of the directories and files recursively as admin. su'ed back to admin, and tried to run it. Here's what I got:
[admin@host botdir]$ ./eggdrop -m fortbot.conf

Eggdrop v1.6.12 (C) 1997 Robey Pointer (C) 2002 Eggheads
[15:38] --- Loading eggdrop v1.6.12 (Sun Nov 10 2002)
[15:38] Can't load modules dns: /root/botdir/modules/dns.so: cannot open shared object file: Permission denied
[15:38] Can't load modules channels: /root/botdir/modules/channels.so: cannot open shared object file: Permission denied
[15:38] Can't load modules server: /root/botdir/modules/server.so: cannot open shared object file: Permission denied
[15:38] Can't load modules ctcp: /root/botdir/modules/ctcp.so: cannot open shared object file: Permission denied
[15:38] Can't load modules irc: /root/botdir/modules/irc.so: cannot open shared object file: Permission denied
[15:38] Can't load modules notes: /root/botdir/modules/notes.so: cannot open shared object file: Permission denied
[15:38] Can't load modules console: /root/botdir/modules/console.so: cannot open shared object file: Permission denied
[15:38] Can't load modules blowfish: /root/botdir/modules/blowfish.so: cannot open shared object file: Permission denied
[15:38] Tcl error in file 'fortbot.conf':
[15:38] invalid command name "channel"
while executing
"channel add #FansofRealityTV {
chanmode "+nt-likm"
idle-kick 0
stopnethack-mode 0
}"
(file "fortbot.conf" line 63)
[15:38] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Any help would be greatly appreciated. Thanks, everyone!
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The files have been compiled as root, and as such, have the user ownership of root.

You will need to re-compile the bot, as a normal user, to run it as that user.
F
FORTadmin

Post by FORTadmin »

I did that, and everything worked great. Thanks everyone for the help.

Of course, now my bot has stopped responding to commands and requests, although it's still logging them. Not sure quite what to do about that, but I'll look around in here and try to find the answer.
Locked