I have squirrelmail-1.4.0-1 installed on our server RedHat FC1 linux, and
I'm testing squirrelmail-1.4.3a-6.FC3 on a FC3 linux server. Both are
working without big problems so far. I haven't added any new plugin
except the default ones when I install sm 1.4.3. I set plain files for
user preference, addressbook, etc., no database used. So, the users'
files are at /var/lib/squirrelmail/prefs/ as .abook, .sig, .2004.cal, etc.
If a user on fc3 logs in sm, and creates addressbook, signature, calendar,
etc. there is no problem. After that, the system root can edit the user's
.abook etc. and copy/paste his abook file from his account in fc1 to the
new system fc3. Then, the user will have all of his previous
information/data in the new sm 1.4.3 on fc3 system.
However, if a user does not create his .abook, .cal, etc. first, but the
root first transfers those files from fc1 sm-1.4.0 to fc3 sm-1.4.3 or
creates those files for a user, and sets the owner/group and permission as
apache.apache, 644 as they were created by the user from sm, the problem
comes: the uer cannot edit any of his .abook, .cal, etc. files. He always
gets error: The file is read-only.
Also, even if he creates those files first, but the root simply transfers
files (not edit them) from sm-1.4.0 to sm-1.4.3 and overwrite them, the
user will also get read-only error.
# ls -l /var/lib/squirrelmail/prefs/
lrwxrwxrwx 1 root root 41 Dec 17 05:40 default_pref ->
-rw-r--r-- 1 apache apache 33 Jan 4 14:26 tsu.abook
-rw------- 1 apache apache 418 Jan 4 14:11 tsu.pref
-rw-r--r-- 1 apache apache 33 Jan 4 13:52 msnet.abook
-rw------- 1 apache apache 332 Jan 4 13:52 msnet.pref
User msnet can edit his .abook, but tsu cannot even the two files have
exact the same permission and ownership. The reason is that msnet creates
his .abook through his sm session, but tsu.abook was created by the root,
then changed the owner/mode.
I am going to swith our server from fc1 to fc3 and I need to transfer all
user information/data to the new system. Since we have hundreds of users,
it is not good to ask every user to log in to the new sm and create an
empty address book, calendar etc. first, then the root edits those files
(thousand?) manually. I wonder if I missed something or did something
wrong. Can somebody give me help?
I apprecaite all help!