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 also sync-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 invoke grab-account from a script, and do not run it more than once at a time by hand. seriously. πŸ™ˆ Also: do not edit /etc/sync-accounts by hand and simultaneously run grab-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 πŸ’–βœ¨πŸŽ€πŸ¦‹πŸ’…πŸ«Ά