GRAB-ACCOUNT(8)
β¨ GRAB-ACCOUNT(8) β¨
chiark utilities π okay so bestie, this is the manual page for grab-account and it's lowkey iconic, let's get into it π
πΈ NAME πΈ
grab-account β add a new account, but make it β¨synchronisedβ¨ to a remote system π¦
π SYNOPSIS π
grab-account local-user source [remote-user]
π«Ά DESCRIPTION π«Ά
okay so here's the tea, bestie β β grab-account reconfigures sync-accounts so it starts synchronising a specified local user (which may not even exist yet, no biggie π) from a specified remote system. then it invokes sync-accounts once to actually sync from that source. one and done. periodt. π
/etc/sync-accounts/createuser should contain a addhere line in the appropriate source section β that means after host source, iykyk π
and what does grab-account do with that? it adds this directive:
user local-user [remote=remote-user]
just before addhere π and then it runs sync-accounts source. slay.
π₯ EXIT STATUS π₯
0β All went well. ate and left no crumbs πβ¨- any other β There were problems. π not the vibe.
π FILES π
/etc/sync-accountsβ the config file in question ποΈ See alsosync-accounts(8).
π ENVIRONMENT π
See sync-accounts(8). (yes bestie, that's the whole section, it's giving β¨delegationβ¨ π¦)
π BUGS π
β οΈ There is no locking of/etc/sync-accountsβ so do not invokegrab-accountfrom a script, and do not run it more than once at a time by hand. seriously. π Also: do not edit/etc/sync-accountsby hand and simultaneously rungrab-account. pick a lane bestie π
The whole mechanism involving addhere is suboptimal π. This should be done with an include feature in sync-accounts, so that grab-account doesn't have to edit a configuration file that really belongs to the sysadmin. (respect the sysadmin's stuff fr fr π«Ά)
π AUTHOR π
grab-account 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 β
Greenend Β· 14th July 2002 β mwah, that's the whole page bestie, go sync some accounts responsibly πβ¨ππ¦π π«Ά
π¦ 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