LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Error logging in through squirrelmail (https://www.linuxquestions.org/questions/linux-server-73/error-logging-in-through-squirrelmail-670424/)

madfed 09-17-2008 01:51 AM

Error logging into mail server through squirrelmail
 
Hi everyone,
I have a postfix mail server running on a SUSE10 Box, the mail has soo fine until today when i tried adding a new user, i created the user successfully through yast, but when i tried logging in through squirrelmail, it returns this error
[HTML]Error opening ../data/default_pref
Default preference file not found or not readable![/HTML]

Can anyone help?
Thanks Guys.

ZeroCools 09-17-2008 08:47 AM

maybe you don`t have enought rights for that file. try to change the file rights , for example chmod 775 file

Mr. C. 09-18-2008 12:36 AM

Does data/default_pref exist? If so, what are its permissions?

locate data/default_pref

It needs to be readable by your web server, so 644 is fine (no need to 775, as the file is not executable).

madfed 09-18-2008 05:38 AM

Quote:

Originally Posted by Mr. C. (Post 3283999)
Does data/default_pref exist? If so, what are its permissions?

locate data/default_pref

It needs to be readable by your web server, so 644 is fine (no need to 775, as the file is not executable).

i just discovered that the file is missing, i cant explain how and why, coz i have been using this server since march last year and i have never encountered the error, not untill yesterday when i tried to login with the new user i had just created. all the others are fine, its just with the new accounts i create now,or even when i modify an existing one.
So what do i do about this missing file?
Thanks guys!

Mr. C. 09-18-2008 08:30 AM

There is not very much in the file. The contents are simply defaults that are used by squirrelmail to setup new user default preferences. The issue is not "what about the missing file?" - this issue is "is the squirrelmail installation correct and complete?" You could reinstall the squirrelmail package, or compare it to backups.

My squirrelmail/data/default_pref file only contains :

full_name=
reply_to=
show_html_default=0

and is owner/group 0:0 with permissions 644. This file belongs in the data directory that is stored in the squirrelmail web folder, not the data folder used for attachments.

madfed 09-19-2008 12:14 AM

Quote:

Originally Posted by Mr. C. (Post 3284509)
There is not very much in the file. The contents are simply defaults that are used by squirrelmail to setup new user default preferences. The issue is not "what about the missing file?" - this issue is "is the squirrelmail installation correct and complete?" You could reinstall the squirrelmail package, or compare it to backups.

My squirrelmail/data/default_pref file only contains :

full_name=
reply_to=
show_html_default=0

and is owner/group 0:0 with permissions 644. This file belongs in the data directory that is stored in the squirrelmail web folder, not the data folder used for attachments.

Thanks,
Im alittle confused there, when you say the squirrelmail web folder, do you mean /srv/www/htdocs/mail? because when i list the contents of this directory, here is what i have

Code:

mail:/srv/www/htdocs/mail # ls
.  AUTHORS    class  configure  COPYING  doc        help    include    INSTALL  plugins  README        src    UPGRADE
..  ChangeLog  config  contrib    data    functions  images  index.php  locale  po      ReleaseNotes  themes

i tried to locate the squirrelmail/data folder but its no where on the system, so should i assume its the /srv/www/htdocs/mail?

Thanks.

Mr. C. 09-19-2008 12:19 AM

I think it is the data directory you've shown above. I say "think" because each distribution installs various software in different locations, and I don't always know/remember the locations (especially since I've been doing my own builds/installs for a very long time). It won't hurt to try that one first.

madfed 09-19-2008 02:48 AM

Quote:

Originally Posted by Mr. C. (Post 3285220)
I think it is the data directory you've shown above. I say "think" because each distribution installs various software in different locations, and I don't always know/remember the locations (especially since I've been doing my own builds/installs for a very long time). It won't hurt to try that one first.

Thanks alot, it worked out, i copied the file from another system and put it in the /srv/www/htdocs/mail/data directory and changed the permissions like you said and its cool. thanks alot
im confused coz it seems like that directory is the attachments directory, coz its got alot of attachment files in it. anyway thanks a bunch,
God Bless

Mr. C. 09-19-2008 10:27 AM

You can configure the attachment directory to be outside of the web root, and this is the advised procedure.


All times are GMT -5. The time now is 03:59 AM.