egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Privilege problems [solved]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sun Dec 26, 2010 3:25 pm    Post subject: Privilege problems [solved] Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Trixar_za
Op


Joined: 18 Nov 2009
Posts: 143
Location: South Africa

PostPosted: Sun Dec 26, 2010 5:34 pm    Post subject: Reply with quote

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
_________________
http://www.trixarian.net/Projects
Back to top
View user's profile Send private message Visit poster's website
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sun Dec 26, 2010 5:49 pm    Post subject: Reply with quote

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

Code:
[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!
Back to top
View user's profile Send private message Visit poster's website
Trixar_za
Op


Joined: 18 Nov 2009
Posts: 143
Location: South Africa

PostPosted: Sun Dec 26, 2010 11:48 pm    Post subject: Reply with quote

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:
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.
_________________
http://www.trixarian.net/Projects
Back to top
View user's profile Send private message Visit poster's website
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Mon Dec 27, 2010 5:10 am    Post subject: Reply with quote

Seems works.
Thanks. Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber