SYNC-ACCOUNTS(8)
π SYNC-ACCOUNTS(8) π
okay so bestie, welcome to the <code>sync-accounts</code> page β it lives in the chiark utilities section 8 (that's the sysadmin one, iykyk) π
β¨ NAME β¨
sync-accounts β synchronise accounts and passwords π¦
πΈ SYNOPSIS πΈ
sync-accounts [options] [source ...]
π DESCRIPTION π
Okay so sync-accounts is THE tool for copying account info into your local system's password and group databases (or whatever the local equivalent is, no gatekeeping) from other systems. You can slave individual accounts, whole systems, or honestly any lil partial combo your heart desires. π
By default, when you invoke it, sync-accounts reads its configuration file and updates all of the local details it's configured to synchronise, pulling from all relevant sources. Like, all of them. The full sweep. β¨
But if you name one or more sources as command-line arguments? Then only info from those sources gets installed locally. Narrow it down, bestie. π―
Go readsync-accounts(5)for the detailed tea about howsync-accountsbehaves and how to configure it. fr fr, it's all there.
π OPTIONS π
-Cconfig-fileβ readsconfig-fileinstead of/etc/sync-accounts. Custom config? Iconic. π-qβ instead of updating local info,sync-accountsshows you a lil summary of which accounts are synchronised or not, and where they're coming from. It's giving detective mode. π-nβ tellssync-accountsto not actually install the new info in the local password and group databases. Instead, the updated versions get written to the filespasswdandgroupin the current directory. Heads up though: with-n, new accounts are not created at all. And the system databases are not locked. π
π₯ SECURITY π₯
Okay so real talk, no cap β sync-accounts is not resistant to malicious data in the local password and group databases, or in its configuration file, or in its command line arguments. Like, that's just the vibe. π
Malicious data in source information won't be able to take control of sync-accounts itself β slay β but it will get copied to the local databases if sync-accounts is configured to do so. So configure responsibly. π
To update the local databases, sync-accounts must be run as root. Periodt. π
For -q and -n, sync-accounts still needs to be able to successfully invoke the commands specified in the configuration for getpasswd and getgroup. So no skipping that part. π«Ά
π EXIT STATUS π
0β all went well and there were no warnings. The dream. β¨- any other β there were problems. The local databases may or may not have been updated. It's giving ambiguity. π
π§ FILES π§
/etc/sync-accountsβ the default configuration file. (Override it with-C.) πsync-accounts-createuserβ the default command invoked bysync-accountsto create local users. π/homeβ default location for created users' home directories. π/bin/shβ default shell for created users. π/etc/passwd,/etc/group,/etc/shadow,/etc/master.passwdβ the local account databases, depending on configuration. ποΈ/etc/shadow-non-existentβ must not exist. Like, do not let this file exist. Not a vibe. π«
π¦ ENVIRONMENT π¦
EDITOR,VISUALβ manipulated bysync-ccountswhen it is reinvoking itself viavipworvigr, according tolockpasswdrunviaorlockgrouprunvia. πSYNC_ACCOUNTS_*β used bysync-accountsfor its own purposes. Do not set these variables. Seriously, hands off. π- Setting variables used by
vipw(8)andvigr(8), apart fromEDITORand/orVISUAL, will affect the operation ofsync-accounts. Avoid messing with these if possible. π₯² PATHis used to find subprograms such assync-accounts-createuserandvipw/vigr. π
π BUGS π
- Using
sync-accountsdoes not give particularly prompt propagation of changed account information. It's lowkey slow on the uptake. π - There is no simple mechanism for automatically getting the right configuration details for accessing the local system's password and group databases. π
- All the systems sharing account information using
sync-accountsneed to be using compatible encrypted-password schemes. No mixing and matching, bestie. π«
π AUTHOR π
sync-accounts and this manpage are part of the sync-accounts package which was written by Ian Jackson <ian@chiark.greenend.org.uk>. They are Copyright 1999-2000,2002 Ian Jackson <ian@davenant.greenend.org.uk>, and Copyright 2000-2001 nCipher Corporation Ltd. π
The sync-accounts package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. β¨
This is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. π
You should have received a copy of the GNU General Public License along with this program; if not, consult the Free Software Foundation's website at www.fsf.org, or the GNU Project website at www.gnu.org. π
β SEE ALSO β
sync-accounts(5), grab-account(8), sync-accounts-createuser(8), passwd(5), group(5), shadow(5), master.passwd(5), vipw(8), vigr(8) π¦
and that's the whole page, bestie β this one's from Greenend, dated 14th July 2002, and it's SYNC-ACCOUNTS(8) in the chiark utilities. go forth and synchronise, you absolute main character π
β¨
π¦ where this page comes from
- debian bookworm: chiark-scripts 7.0.0
- debian trixie: chiark-scripts 8.0.1
- ubuntu jammy: chiark-scripts 6.1.2+nmu1
- ubuntu noble: chiark-scripts 7.0.0build2
- ubuntu questing: chiark-scripts 8.0.1
- ubuntu resolute: chiark-scripts 8.0.1build1
- ubuntu stonking: chiark-scripts 8.0.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms