Moving cyrus from one machine to another

Su Li sli at rim.net
Mon Sep 16 12:30:19 EDT 2002


I am using Linux redhat 7.2. Yes the root partition is located on the
mirrored disk. 

I did saslpasswd cyrus sccucessfully. I login as root to Linux and su to
cyrus.

When I do:
[cyrus at bwc-imap-01 cyrus-sasl-2.1.7]$ cyradm localhost
Password: 
cyradm: cannot authenticate to server with  as cyrus

I got:
Sep 16 12:27:41 bwc-imap-01 imapd[6893]: no OTP secret in database
Sep 16 12:27:41 bwc-imap-01 imapd[6893]: badlogin: web4[127.0.0.1] OTP
[SASL(-13): user not found: no OTP secret in database]
Sep 16 12:27:45 bwc-imap-01 perl: No worthy mechs found


When I do: [cyrus at bwc-imap-01 cyrus-sasl-2.1.7]$ cyradm -auth login
localhost

I got:
Login failed: user not found at
/usr/lib/perl5/site_perl/5.6.0/i386-linux/Cyrus/IMAP/Admin.pm line 114
cyradm: cannot authenticate to server with login as cyrus 

Thanks,


Su


-----Original Message-----
From: Andy Saxena [mailto:andyML at nyc.rr.com]
Sent: September 16, 2002 11:14 AM
To: info-cyrus at andrew.cmu.edu
Subject: RE: Moving cyrus from one machine to another


Su Li said:
> Hi Andy,
>
> I saw the discussion and knew that you have solved the problem. What I did
is
> mirror the disk and put the mirrored disk on the new machine and change
the IP
> address and host name to the new machine. It looks simple.
>
> But I couldn't login as cyrus in the new machine any more. It seems the
> sasl2.db doesn't have a user named cyrus. Is that because I changes IP and
> host name? Do you know how to recreate the cyrus user? I tried to remove
the
> sasl2.db and rerun Cyrus Imap, the system said, failed to locate sasl2.db.
Do
> you know how to recreate a sasl2.db?
>
> Thanks,
>
> Su

Su,

I think we would need more information to help you out. What kind of OS are
you
using? Is the root partition located on the disk you mirrored?

Ordinarily, you shouldn't need to setup the 'cyrus' user with a password.
Log in
as root and su to cyrus - of course, some will say don't use root if you
don't
have to, but I think using root to su to cyrus works just fine.

Once we know more information about your setup, we can figure it out.

-Andy





More information about the Info-cyrus mailing list