LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-18-2009, 11:03 PM   #1
mnauta
Member
 
Registered: Apr 2003
Posts: 152

Rep: Reputation: Disabled
Upgrade failed - file ownership


I upgraded a Scalix email server from Fedora to Centos (production server) and I have some major file ownership issue.

1) I unmounted scalix mail store volume to preserve the data (disk 1)
2) did a clean install of Centos replacing Fedora on disk0
3) installed scalix mail server, ran fine.
4) Mounted old mailstore volume on disk1
5) scalix would not start, file permission problem!

I checked the mailstore directories and noticed that the files were no longer owned by scalix but owner 495??

Code:
/var/opt/scalix/sl/s/sys
[root@sxmail sys]# ls -all
total 2012
drwxrwxr-x 19  495  494   4096 Dec 18 00:47 .
drwxrwxr-x 58  495  494   4096 Sep 26  2008 ..
-r--r--r--  1  495  494   2829 May  7  2008 acl.cfg
-rw-r--r--  1  495  494   2723 Mar 22  2005 adm.ini
-r--r--r--  1  495  494      0 Mar 22  2005 .aksetupok
-r--r--r--  1  495  494    242 Feb 18  2005 allpcl.str
-r--r--r--  1  495  494    367 Feb 18  2005 alltext.str
-r--r--r--  1  495  494  14227 May  7  2008 appm1600.fin
-r--r--r--  1  495  494  14080 Apr  6  2006 appmap
-r--r--r--  1  495  494  14016 Mar 22  2005 appmap.x
-r--r--r--  1  495  494   7658 May  7  2008 audit.cfg
-r--r--r--  1  495  494   1101 Feb 18  2005 audit.map
-r--r--r--  1  495  494      0 Mar 22  2005 .AutoIAM
drwxrwx---  3  495  494   4096 Dec 18 14:47 bb
-r--r--r--  1  495  494   2776 Mar  6  2007 brwmime.str
-r--r--r--  1  495  494   1187 May  7  2008 ccs1600.fin
-rw-rw----  1  495  494     31 Dec 18 00:47 cda.cfg
-rw-rw----  1  495  494      0 Mar 22  2005 cda.cfg.lk
-r--r--r--  1  495  494   6641 Mar 27  2006 CharMap
-r--r--r--  1  495  494   4111 Feb 18  2005 charsets
drwxrwxr-x  2  495  494   4096 Sep 26  2008 check
drwxrwxr-x  2  495  494   4096 Mar 22  2005 client.cfg
-r--r--r--  1  495  494    103 May  7  2008 cnl1600.fin
-r--r--r--  1  495  494   1386 May  7  2008 con1600.fin
-rw-rw----  1  495  494 104448 Dec 18 20:56 config
Short of changing file permissions folder by folder, what can I do?

This is a production server
 
Old 12-19-2009, 12:54 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You can put the commands in a script to change the permissions folder by folder automatically.
You can give user scalix permission to access the files owned by 495.
 
0 members found this post helpful.
Old 12-19-2009, 01:06 AM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
This should work:

Code:
cd /var/opt/scalix/sl/s/sys
find . -uid 495 -exec chgrp scalixuser {} \;
find . -gid 494 -exec chgrp scalixgroup {} \;
Replace the user "scalixuser" and the group "scalixgroup" above with the actual user and group that should own the files.

HTH

p.s. you could probably run that at the top of your old mailstore volume.
Forrest

Last edited by forrestt; 12-19-2009 at 01:12 AM. Reason: added p.s.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade problem:failed to fetch file Error in ubuntu 8.04 shojaru Linux - Newbie 1 06-10-2009 04:57 AM
failed to preserve ownership operation not permitted yogks Linux - Software 1 11-27-2008 04:54 PM
File Ownership chrisfirestar Linux - General 2 11-10-2005 04:41 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM
ownership of files changed after upgrade Tinkster Slackware 1 12-20-2002 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration