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.

Privilege problems [solved]

General support and discussion of Eggdrop bots.
Post Reply
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Privilege problems [solved]

Post by Cr4sh »

I'm using an eggdrop installed on gentoo in a root sub-folder (/opt/eggdrop).
When i use it as user, cannot write any file (channel, temp, pid.file).
I can't change the permission of the folder.
What can i do?
Last edited by Cr4sh on Mon Dec 27, 2010 5:11 am, edited 1 time in total.
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

Change the paths of those options in the config file to point to an eggdrop directory in your home folder. That's how I used to fix it with my Ubuntu system after I installed the eggdrop package from the repository.

The trick is to cd to the folder and then type eggdrop eggdrop.conf or use the full path to the config file like eggdrop /home/you/eggdrop/eggdrop.conf
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

I've already created in "myhome" a folder eggdrop with tmp var and logs subfolder inside, but don't work in any case.

Code: Select all

[22:56] Couldn't create channel file: /home/cr4sh/eggdrop/eggdrop.chan.  Dropping
[22:56] === eppool: 1 channels, 0 users.
* Warning! Could not write /home/cr4sh/eggdrop/pid.eppool file!
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

Have you tried changing the permission of the folder and underlying folder and files to 777?

Try chmod -R 777 /home/cr4sh/eggdrop/

Also, after going through my old conf I noticed a few things, namely the paths I used for some options:

Code: Select all

set userfile "Eggor.user"
set pidfile "pid.Eggor"
set userfile-perm 0600
set help-path "/usr/share/eggdrop/help/"
set text-path "/usr/share/eggdrop/text/"
set mod-path "/usr/lib/eggdrop/modules/"
set temp-path "tmp/"
set motd "/usr/share/eggdrop/text/motd"
set telnet-banner "/usr/share/eggdrop/text/banner"

set chanfile "Eggor.chan"

set files-path "/usr/share/eggdrop/filesys"
set incoming-path "/usr/share/eggdrop/filesys/incoming"

set notefile "Eggor.notes"

source /usr/share/eggdrop/scripts/alltools.tcl
source /usr/share/eggdrop/scripts/action.fix.tcl
source /usr/share/eggdrop/scripts/compat.tcl
source /usr/share/eggdrop/scripts/userinfo.tcl

#source scripts/chanstats.1.3.0.tcl

loadhelp userinfo.help
As you can see, I actually used the files provided by the eggdrop package, but only created an eggdrop and scripts folder with the right permissions. Maybe you can do the same (the path to the 'shared' files might be different though).

Mind you, doing it this way actually required me to cd into that eggdrop folder and type eggdrop eggdrop.conf though, but otherwise it worked well.
User avatar
Cr4sh
Halfop
Posts: 63
Joined: Sat Jan 14, 2006 5:16 pm
Contact:

Post by Cr4sh »

Seems works.
Thanks. :D
Post Reply