Accounts are synced from plg2 by a script that's in the crontab. It's under /software/

If a machine gets reinstalled, all you have to do is run that script. You can copy it and point it at a different host list if you only want to do one or two machines. Walter says all this does is copy the encrypted password strings, it doesn't change uids or gids or anything out from underneath you.

This requires that root be able to log in without a password on the machine.

This may also require changing ownership on files in the home directory (see attached script).

When re-installing a machine, one needs to run "accounts-client host=hostname" from cscf.cs first, where hostname is the machine that's being reinstalled. This causes accounts to actually be created on the target machine. After that, the sync-passwords script that's run on plg2 will sync 'em up. This can be run by hand (or cut down to only sync the one machine). It seems to only sync two or three passwords at a time though, so multiple runs may be required. This is probably a bug.

Topic attachments
I Attachment History Action Size Date Who Comment
Unix shell scriptsh r1 manage 0.1 K 2004-10-25 - 13:10 MikePatterson  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2004-12-13 - MikePatterson
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback