LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2008, 01:51 AM   #1
madfed
Member
 
Registered: Jul 2008
Location: Kampala Uganda
Distribution: Fedora 7& SUSE 11.0
Posts: 48

Rep: Reputation: 15
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
 
Old 09-17-2008, 08:47 AM   #2
ZeroCools
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
maybe you don`t have enought rights for that file. try to change the file rights , for example chmod 775 file
 
Old 09-18-2008, 12:36 AM   #3
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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).
 
Old 09-18-2008, 05:38 AM   #4
madfed
Member
 
Registered: Jul 2008
Location: Kampala Uganda
Distribution: Fedora 7& SUSE 11.0
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
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!
 
Old 09-18-2008, 08:30 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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.
 
Old 09-19-2008, 12:14 AM   #6
madfed
Member
 
Registered: Jul 2008
Location: Kampala Uganda
Distribution: Fedora 7& SUSE 11.0
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
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.
 
Old 09-19-2008, 12:19 AM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
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.
 
Old 09-19-2008, 02:48 AM   #8
madfed
Member
 
Registered: Jul 2008
Location: Kampala Uganda
Distribution: Fedora 7& SUSE 11.0
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
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
 
Old 09-19-2008, 10:27 AM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Logging Into SquirrelMail kaplan71 Linux - Server 1 12-03-2007 07:32 PM
Squirrelmail Error talat Linux - Software 0 11-27-2007 02:04 AM
Squirrelmail Error linuxjamil Linux - Server 1 10-19-2007 06:48 PM
squirrelmail error JROCK1980 *BSD 1 05-03-2007 07:16 AM
logging into squirrelmail bovan Linux - Software 1 08-06-2003 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration