as I'm looking trough the .c code in the src directory I can't find why the eggdrop changes the permissions of the .user file after altering it.
I'm trying to read the userfile trough a php script, offcorse it there are only user permissions , apache can't read it. chmodding it won't help cause it keeps changing the permission after writing to it.
function chmodfile( $strFile )
{
chmod("$strFile", 0755);
}
Just call that function each time before you access the userfile
Jon.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
because php (Apache) isn't the owner of the file, so chmodding it before accessing the file isn't possible. Tryed that one before I posted my question thanks.
Jay wrote:because php (Apache) isn't the owner of the file, so chmodding it before accessing the file isn't possible. Tryed that one before I posted my question thanks.
How about running a small script on your bot on a timer to chmod its userfile every minute or half hour depending on how often your userfile is used?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
# This specifies what permissions the user, channel, and notes files should
# be set to. The octal values are the same as for the chmod system command.
#
# To remind you:
#
# u g o u g o u g o
# 0600 rw------- 0400 r-------- 0200 -w------- u - user
# 0660 rw-rw---- 0440 r--r----- 0220 -w--w---- g - group
# 0666 rw-rw-rw- 0444 r--r--r-- 0222 -w--w--w- o - others
#
# Note that the default 0600 is the most secure one and should only be changed
# if you need your files for shell scripting or other external applications.
set userfile-perm 0600