From: Wes Groleau on
Used rsync to duplicate user directory onto another Mac.

Both run 10.3.9

Mail uses keychain to store passwords.

Keychain does not work on the copy, meaning user has to constantly
re-enter password when sending or reading mail.

Suspect Keychain is storing some critical bit of data outside
the user's directory.

???

--
Wes Groleau

After the christening of his baby brother in church, Jason sobbed
all the way home in the back seat of the car. His father asked him
three times what was wrong. Finally, the boy replied, "That preacher
said he wanted us brought up in a Christian home, and I wanted to
stay with you guys."
From: Jolly Roger on
In article <1FaQj.15024$Zk5.5175(a)trnddc05>,
Wes Groleau <groleau+news(a)freeshell.org> wrote:

> Used rsync to duplicate user directory onto another Mac.
>
> Both run 10.3.9
>
> Mail uses keychain to store passwords.
>
> Keychain does not work on the copy, meaning user has to constantly
> re-enter password when sending or reading mail.
>
> Suspect Keychain is storing some critical bit of data outside
> the user's directory.
>
> ???

I would delete all keychain entries for the user's POP/IMAP/SMTP
servers. Then let the user re-enter their password, checking the "store
in keychain" box each time to re-create the keychain entries.

--
Please send all responses to the relevant news group. E-mail sent to
this address may be devoured by my very hungry SPAM filter. I do not
read posts from Google Groups. Use a real news reader if you want me to
see your posts.

JR
From: Ian Gregory on
On 2008-04-25, Wes Groleau <groleau+news(a)freeshell.org> wrote:

> Used rsync to duplicate user directory onto another Mac.

I used to back up my Tiger home directory onto an external HFS Plus
formatted drive using rsync and assumed it was OK. Just before doing an
erase and install of Leopard I did some research and it seems like you
actually need RsyncX or some other HFS patched rsync, otherwise you
could end up loosing forks/metadata etc. To be safe I drug and dropped
my home directory to the external drive before the erase and install and
used that copy instead.

> Keychain does not work on the copy, meaning user has to constantly
> re-enter password when sending or reading mail.

> Suspect Keychain is storing some critical bit of data outside
> the user's directory.

I don't think so? After doing an erase and install of Leopard I just
recovered my ~/Library/Keychains/login.keychains from my old Tiger home
directory and it is working fine.

Now I use Time Machine for backups so I haven't bothered following up my
rsync research.

Ian

--
Ian Gregory
http://www.zenatode.org.uk/ian/
From: Wes Groleau on
Jolly Roger wrote:
> Wes Groleau <groleau+news(a)freeshell.org> wrote:
>
>> Used rsync to duplicate user directory onto another Mac.
>>
>> Both run 10.3.9
>>
>> Mail uses keychain to store passwords.
>>
>> Keychain does not work on the copy, meaning user has to constantly
>> re-enter password when sending or reading mail.
>>
>> Suspect Keychain is storing some critical bit of data outside
>> the user's directory.
>>
>> ???
>
> I would delete all keychain entries for the user's POP/IMAP/SMTP
> servers. Then let the user re-enter their password, checking the "store
> in keychain" box each time to re-create the keychain entries.

I guess I should have been more specific on "Keychain doesn't work"

When you put a password in the preferences in Mail, it actually
transparently puts it in the Keychain. Keychain, however, does
not store it, but no error message is issued. Open mail prefs
again, still blank.

When Mail wants to send or fetch, it checks Keychain for password,
and doesn't get it. So it pops up an enter password box. Enter
password, check the "store in keychain" and the mail action succeeds.
But it still demands a password next time.

Open Keychain Access, click the unlock--nothing happens.

Works for other users on the same Mac. Works for all users
on the other Mac. Their ~ directories are exact copies
(unless rsync has a bug)

--
Wes Groleau
"If it wasn't for that blasted back-hoe,
a hundred of us could be working with shovels"
"Yeah, and if it weren't for our shovels,
a thousand of us could be working with spoons."
From: Wes Groleau on
Ian Gregory wrote:
> On 2008-04-25, Wes Groleau <groleau+news(a)freeshell.org> wrote:
>
>> Used rsync to duplicate user directory onto another Mac.
>
> I used to back up my Tiger home directory onto an external HFS Plus
> formatted drive using rsync and assumed it was OK. Just before doing an
> erase and install of Leopard I did some research and it seems like you
> actually need RsyncX or some other HFS patched rsync, otherwise you
> could end up loosing forks/metadata etc. To be safe I drug and dropped

I thought the rsync on Tiger had the patch. I'm on 10.3.9 but I use
the patched rsync that comes packed inside of rsyncx.

>> Suspect Keychain is storing some critical bit of data outside
>> the user's directory.
>
> I don't think so? After doing an erase and install of Leopard I just
> recovered my ~/Library/Keychains/login.keychains from my old Tiger home
> directory and it is working fine.

But in this case, that file for all users has been synced to two Macs
by rsync. But it fails on _one_ Mac for _one_ user.

Maybe I should just delete the whole keychain and start a new one.

--
Wes Groleau
"If it wasn't for that blasted back-hoe,
a hundred of us could be working with shovels"
"Yeah, and if it weren't for our shovels,
a thousand of us could be working with spoons."