Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Last edited by madfed; 09-17-2008 at 03:55 AM.
Reason: need to modify the subject
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!
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.
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.