Page 1 of 1

Wrong permissions on IMAP cache files

Posted: Tue Mar 06, 2007 7:30 pm
by swordfish
Hi there,

I'm running Scalix 11.0.1 on RHEL 4.0. Every couple of days when I run omcheck -s -d > check_file I get the following error messages in the check_file:


#Now checking Mailstore files OM-USERGFILES
#
# Filename: /var/opt/scalix/rv/s/user/g00003a/00000v8.ofs/dref-map ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/00000v8.ofs/dref-map
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/000110000fd5437a ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/000110000fd5437a
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/USER_FOLDER ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/USER_FOLDER
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/000106cdd9203713 ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/000106cdd9203713
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/00010c1204535e87 ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/00010c1204535e87
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/000112028583f26a ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/000112028583f26a
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/000106d358749c58 ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/000106d358749c58
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/USER_FOLDER.syncdate ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/USER_FOLDER.syncdate
# Filename: /var/opt/scalix/rv/s/user/g00003a/imap-cache/0001120010ce445b ( Scalix OM-USERGFILES )
# Uid is 60539 (UNKNOWN) should be 100 (scalix)
chown scalix /var/opt/scalix/rv/s/user/g00003a/imap-cache/0001120010ce445b
# Filename: /var/opt/scalix/rv/s/user/g000038/imap-cache/00011c007a4f0d1f ( Scalix OM-USERGFILES )



Then I execute the check_file and it fixes the permissions. After couple of days the permissions on some files are wrong again. Anyone have an idea what causes the permissions to be wrong and how to fix it permanently? I checked the user with the wrong permissions and he can login via IMAP or SWA without any problems as well as send/receive e-mails.

Posted: Wed Mar 07, 2007 7:26 am
by ScalixSupport
Hi!

Can you do one more omcheck, run "omcheck -i -s > check_scalix_component_perm",
check if you have some permission problems with Scalix components. Run the script
check_scalix_component_perm, to correct them if any.

Thanks,
Subir

Posted: Wed Mar 07, 2007 11:14 am
by dkelly
These "errors" are actually misleading. I'll raise a bug to get this fixed up.

The files in the imap-cache directory are created by the IMAP process that is owned by the user. So we'd expect that the files have a uid of the user whose mailbox it is but the files *must* be owned by the scalix user.

Looking at the output from omcheck, there is no complaint that the permissions or the group ownership are incorrect so you are OK to ignore these.

Cheers

Dave

Posted: Wed Mar 07, 2007 11:20 am
by dkelly
I've raised this as bug 14886 ( see http://bugzilla.scalix.com/show_bug.cgi?id=14886 )

Please note that this doesn't commit us to a schedule for fixing this but at least now it can be prioritised accordingly.

Cheers

Dave

Posted: Wed Mar 07, 2007 1:34 pm
by swordfish
"omcheck -i -s > check_scalix_component_perm" doesn't come up with any errors.

Thanks for the replies. As long as I know that it's not really causing any problems at this stage, you can obviously resolve it sometime in the future.

Posted: Wed Mar 07, 2007 2:04 pm
by kanderson
You only need to run that once after you lose permissions due to moving or copying files around. It doesn't need to be regularly ran.

Kev.

issue with permissions

Posted: Tue Jan 13, 2009 1:18 pm
by pnowak76
Is there any progress on this old bug? It seems to be unresolved even in the
latest version 11.4.2
We are running omcheck on a regular basis and still getting permissions errors
every day, which result in problems with logging or creating calendar events
etc...

Posted: Tue Jan 13, 2009 2:01 pm
by schmoe90
The old bug looks like it'll fail once. Do you actually fix the errors with the -s script, or just run it every day?

Posted: Wed Jan 14, 2009 11:24 am
by pnowak76
I run every night: omcheck -s -d > /root/perm.sh && bash /root/perm.sh but it doesn't help since we are getting these errors permanently:

Now checking Mailstore files OM-USERGFILES

Filename: /var/opt/scalix/b1/s/user/g000038/imap-cache/0003e01c8f82ff7d ( Scalix OM-USERGFILES )
Uid is 55003 (UNKNOWN) should be 104 (scalix)
Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)

Filename: /var/opt/scalix/b1/s/user/g000037/imap-cache/00010c052a35e2d2 ( Scalix OM-USERGFILES )
Uid is 55002 (UNKNOWN) should be 104 (scalix)
Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)

Filename: /var/opt/scalix/b1/s/user/g000037/imap-cache/000120242d0b43fe ( Scalix OM-USERGFILES )
Uid is 55002 (UNKNOWN) should be 104 (scalix)
Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)

Posted: Wed Jan 14, 2009 2:28 pm
by schmoe90
It's not causing any problems. What do you do on your system that would make you want to run an omcheck every night?

omcheck messages

Posted: Mon Feb 23, 2009 5:43 am
by ruth_schell
hi all,

Scalix 11.4.3 on OpenSuSE

me too has issues with

Code: Select all

omcheck -s -d


reporting things like

Code: Select all

#Now checking Mailstore files OM-USERGFILES
# Filename: /var/opt/scalix/pn/s/user/g00003p/imap-cache/00011093e34dfb85 ( Scalix OM-USERGFILES )
# Uid is 60554 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g00003p/imap-cache/00011093e34dfb85
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g00003p/imap-cache/00011093e34dfb85
# Filename: /var/opt/scalix/pn/s/user/g000037/imap-cache/0008ca3a789c2c1c ( Scalix OM-USERGFILES )
# Uid is 60536 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g000037/imap-cache/0008ca3a789c2c1c
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g000037/imap-cache/0008ca3a789c2c1c
# Filename: /var/opt/scalix/pn/s/user/g000037/imap-cache/00012d3277924aa4 ( Scalix OM-USERGFILES )
# Uid is 60536 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g000037/imap-cache/00012d3277924aa4
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g000037/imap-cache/00012d3277924aa4
# Filename: /var/opt/scalix/pn/s/user/g000037/imap-cache/000128b1fadb3872 ( Scalix OM-USERGFILES )
# Uid is 60536 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g000037/imap-cache/000128b1fadb3872
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g000037/imap-cache/000128b1fadb3872
# Filename: /var/opt/scalix/pn/s/user/g000037/imap-cache/0004e6151412f3a7 ( Scalix OM-USERGFILES )
# Uid is 60536 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g000037/imap-cache/0004e6151412f3a7
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g000037/imap-cache/0004e6151412f3a7
# Filename: /var/opt/scalix/pn/s/user/g00003i/imap-cache/000d7490532845bb ( Scalix OM-USERGFILES )
# Uid is 60547 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g00003i/imap-cache/000d7490532845bb
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g00003i/imap-cache/000d7490532845bb
# Filename: /var/opt/scalix/pn/s/user/g00003c/imap-cache/000110a6a5846e3b ( Scalix OM-USERGFILES )
# Uid is 60541 (UNKNOWN) should be 103 (scalix)
chown scalix /var/opt/scalix/pn/s/user/g00003c/imap-cache/000110a6a5846e3b
# Mode is 660 (-rw-rw----) should be 660 (-rw-rw----)
chmod 660 /var/opt/scalix/pn/s/user/g00003c/imap-cache/000110a6a5846e3b


The Mode 660 message is annoying, but does not bother me that much.

The permission issues do bother me.
As i do an omcheck -s -d on a regular basis, i can see that the permission issues get fixed once, but they keep coming back after a few days as reported by swordfish in this thread. Like his also my affected users seem to have no problems login in or sending and receiving mail.

Though i've got the feeling that wrong permission in imap-cache files lead to miscountings in the unread messages counter, in re-occuring calender-reminders and and other imap issue we sometimes have. They all seem to vanish if i fix permission issues with omcheck.
OK, speculating here...

Anyway, i'd love to know what screws up the permissions in first place. Or if this is just 'noise' and can savely be ignored.

die Ruth.