omcheck forgetting certain files

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

heupink
Posts: 146
Joined: Thu Jul 15, 2004 9:36 am
Location: netherlands
Contact:

omcheck forgetting certain files

Postby heupink » Thu Feb 15, 2007 8:09 am

Hi all,

After restoring /var/opt/scalix to a different server I used omcheck to correct permissions, because the uid numer on the new server changed.

Running bash ./sxfix takes a long time, and afterwards I noticed that several files are still owned by old uid /grp numbers, which now point to messagebus/messagebus.

(examples: /var/opt/scalix/i7/s/sys/omscan.cfg, /var/opt/scalix/i7/s/sys/slapd.conf, /var/opt/scalix/i7/s/orphans and it's complete contents)

So I'm getting [SYS 13] Permission denied after omrc to start scalix. (on: /var/opt/scalix/i7/s/sys/dir.index.lk, /var/opt/scalix/i7/s/sys/omlocks)

Any ideas?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Feb 19, 2007 7:37 am

Hi!

While taking backup from the old server, you probably did not restore ownership and permissions of the files in /var/opt/scalix. It is necessary, if you have not done, please retry
again.

Thanks,
Subir

heupink
Posts: 146
Joined: Thu Jul 15, 2004 9:36 am
Location: netherlands
Contact:

Postby heupink » Wed Feb 21, 2007 7:41 am

For the record:

The problem was: at the time I created the tar.gz archive on the mailserver the user/group scalix/scalix did NOT yet exist, so tar added the numeric user/group id's. When I expanded the tar.gz on my new server it translated those numbers into a different user/group.

How I solved it: First I created the user/group scalix/scalix with correct id's, and then I created a new tar.gz. That way, tar includes the user/groupNAMES.

That way, even if on the target system the numeric id's happen to be different, they 'translate' to the right user/group.

Hope this helps someone.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 10 guests

cron