From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.1) Gecko/20021003 Description of problem: Phoebe version 8.0.94 I used up2date to install SquirrelMail along with the httpd, php, and imap components. Tried http://myhost/webmail and got an error about the prefs file. Version-Release number of selected component (if applicable): squirrelmail-1.2.10-4 How reproducible: Didn't try Steps to Reproduce: 1. Install SquirrelMail 2. Try to login Actual Results: Error about opening prefs file: Error opening ../data/default_pref Default preference file not found or not readable! Please contact your system administrator and report this error. Expected Results: SquirrelMail logs me in and display INBOX Additional info: It seems the permissions on: /var/lib/squirrelmail/prefs and /var/spool/squirrelmail/attach need to be set to apache.apache instead of root.root
I'm not able to reproduce this, and the permissions inside the rpm are correct. Please run 'rpm -V squirrelmail' and attach the results here.
Here you go: [whooper@poit whooper]$ rpm -V squirrelmail S.5....T c /etc/squirrelmail/config.php missing /var/lib/squirrelmail/prefs/default_pref [whooper@poit whooper]$ sudo ls -l /var/lib/squirrelmail/prefs/ total 12 -rw-r--r-- 1 apache apache 99 Feb 10 09:56 default_pref -rw-r--r-- 1 apache apache 0 Mar 15 20:37 whooper.abook -rw------- 1 apache apache 998 Mar 17 18:59 whooper.pref -rwxr-xr-x 1 apache apache 14 Mar 15 20:42 whooper.sig [whooper@poit whooper]$ The config.php I understand being changed, but the default_pref obviously exists. I installed using the command "up2date squirrelmail" without httpd or php, so could this be an issue with the order that the deps were installed? I see in the up2date log file: "[Sat Mar 15 19:23:53 2003] up2date installing packages: ['squirrelmail-1.2.10- 4', 'httpd-2.0.40-20', 'php-4.2.2-16']".
That's strange. Does it still say that /var/lib/squirrelmail/prefs/default_pref is missing if you 'chown 0.0 /var/lib/squirrelmail/prefs/default_pref' (which is as it comes from the rpm)? There shouldn't be an issue with the ordering of the dependencies unless rpm broke: the squirrelmail rpm requires that the httpd rpm is installed before it so that the apache user and group are there, but that is all taken care of in the specfile.
Yep, that seems to fix it: [root@poit prefs]# chown 0.0 default_pref [root@poit prefs]# ll total 12 -rw-r--r-- 1 root root 99 Feb 10 09:56 default_pref -rw-r--r-- 1 apache apache 0 Mar 15 20:37 whooper.abook -rw------- 1 apache apache 1110 Mar 19 09:14 whooper.pref -rwxr-xr-x 1 apache apache 14 Mar 15 20:42 whooper.sig [root@poit prefs]# rpm -V squirrelmail S.5....T c /etc/squirrelmail/config.php [root@poit squirrelmail]# And changing the prefs directory back to root.root is caught by RPM: [root@poit squirrelmail]# ll total 4 drwx------ 2 apache apache 4096 Mar 19 11:08 prefs [root@poit squirrelmail]# chown 0.0 prefs/ [root@poit squirrelmail]# rpm -V squirrelmail S.5....T c /etc/squirrelmail/config.php .....UG. /var/lib/squirrelmail/prefs [root@poit squirrelmail]# ll total 4 drwx------ 2 root root 4096 Mar 19 11:08 prefs [root@poit squirrelmail]# chown apache.apache prefs/ [root@poit squirrelmail]# rpm -V squirrelmail S.5....T c /etc/squirrelmail/config.php [root@poit squirrelmail]# And of course having root.root on the directory breaks SM. Well if having up2date install squirrelmail and deps on a fresh install can't reproduce it, then feel free to close this one. Must have been some kind of fluke.
Yeah, looks to have been a fluke; thanks for all your help though.