Re: [SM-USERS] data prefs permission error after login

2013-11-12 Thread Paul Lesniewski
Please post in plain text to this list, thanks.

On Sun, Nov 10, 2013 at 9:26 AM, Ryan Dagey  wrote:
>
> Hello:
>
>
>
> We’ve had a working squirrelmail for a long time now. Yesterday, we added to 
> new users to the mail server, configured the Maildir and sent initial email. 
> After this, users could no longer use the squirrelmail system. Behavior is 
> different for existing versus the two new users, but the error message is the 
> same:
>
>
>
> ERROR
>
> Preference file, ../data/[USERNAME].pref.tmp, could not be written. Contact 
> your system administrator to resolve this issue.
>
>
>
> For existing users, they are logged in and can view the folder pane, with the 
> error in the right pane (no message list is accessible); for the new users, 
> they are immediately presented with the error upon logging in.
>
>
>
> I have made attempts to determine the cause, most likely a permission issue. 
> The apache user/group has writable permissions to the data directory (I even 
> tested with full 777 permissions). I deleted and recreated the data directory 
> with proper permissions from this page, and tested with data in the /var 
> folder:


My only suggestion would be to inspect the permissions on the parent
directories.  And take a deeper look at what you changed when you
added the new users, or think about other simultaneous changes you
made.  Things don't stop working without good reason.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] data prefs permission error after login

2013-11-12 Thread Juergen Nickelsen
On 12.11.2013 09:50, Paul Lesniewski wrote:

> On Sun, Nov 10, 2013 at 9:26 AM, Ryan Dagey  wrote:
[...]
>> For existing users, they are logged in and can view the folder pane, with 
>> the error in the right pane (no message list is accessible); for the new 
>> users, they are immediately presented with the error upon logging in.
>>
>>
>>
>> I have made attempts to determine the cause, most likely a permission issue. 
>> The apache user/group has writable permissions to the data directory (I even 
>> tested with full 777 permissions). I deleted and recreated the data 
>> directory with proper permissions from this page, and tested with data in 
>> the /var folder:
> 
> My only suggestion would be to inspect the permissions on the parent
> directories.

*Reading* the files from that directory apparently works, only writing
(the temp file) does not, which it should, with permissions 0777. This
does not sound like a permission issue of one of the parent directories
to me. (I could be wrong, of course.) I can imagine a few other reasons
for this behaviour:

  * disk full,
  * hard quota limit reached,
  * file system mounted read-only.

These are relatively rare conditions, but you might want to check them
anyway, if only to exclude them.

Can you create and write other files on the same file system as the
Apache user? Can you create and write files in the preferences directory
interactively when logged in as the Apache user? (Like "cp /etc/group
tempfile")

The exact error message including the specific nature of the error
(unfortunately not present in the SquirrelMail message) could be helpful.

After that issue is cleared, do me the favour and change the directory
permissions from 0777 to something sensible again. :-/

Regards, Juergen.

-- 
 Tel +49.30.838-50740 Fax -450740
Zentraleinrichtung fuer Datenverarbeitung, Central Systems (Unix)
Freie Universitaet Berlin, Fabeckstrasse 32, 14195 Berlin, DE



smime.p7s
Description: S/MIME Cryptographic Signature
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users