NIPAP-PASSWD(1)

πŸ“¦
version 0.32.7 Β· 2 versions
, in nixos 26.05

πŸ’… NAME πŸ’…

nipap-passwd β€” the little utility that runs the user accounts in your local (SQLite) database so the NIPAP backend can actually log people in ✨


πŸŽ€ SYNOPSIS πŸŽ€

nipap-passwd action [options...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, picture this: the NIPAP backend can be set up to use a "local" authentication backend, right? and that backend is literally just a SQLite database. that's it. that's the whole vibe. πŸ—„οΈ

nipap-passwd is the tool that administrates user accounts in that local (SQLite) database. it gives you a genuinely easy way to add, remove or change users in a database like that β€” no cap, that's the entire job πŸ’–

and by default? nipap-passwd reads the NIPAP config file (/etc/nipap/nipap.conf) to figure out where the SQLite database even lives. iconic behaviour honestly πŸ‘‘


✨ OPTIONS ✨

nipapd-passwd accepts the following command-line arguments. (yep, the original spells it that way β€” keeping it fr fr, no edits πŸ™ˆ)

🌸 positional arguments:

  • action β€” one of {list, add, delete, test-user, create-database, upgrade-database, latest-version}. this literally defines which action to execute, so pick one bestie πŸ’…
    • list β€” list all the users in the SQLite database πŸ“‹
    • add β€” add a user to the database. username comes from -u, password comes from -p πŸ”
    • delete β€” delete the user with the username specified with -u from the database πŸ—‘οΈ
    • modify β€” modify an existing user. who you're modifying is specified with -u. and heads up: it is not possible to change the username of an existing user β€” that's a hard no, sorry 🚫
    • test-user β€” try to authenticate with the user specified with the option -u and the password specified with -p. the program will return exit code 2 if the user doesn't exist or the password is wrong. so if you see a 2, that login did not slay 😭
    • create-database β€” create an empty SqliteAuth database in the path specified in the config, or by option -f πŸ—οΈ
    • upgrade-database β€” upgrade the SQLite database to the latest version ⬆️
    • latest-version β€” check if the SQLite database is of the latest version πŸ‘€

🧚 optional arguments:

  • -h, --help β€” show a help message 🫢
  • -u USER, --user=USER β€” in combination with action add, the username of the user will be set to USER. in combination with option test-user, the authentication will be tested with USER. in combination with action delete, the user USER will be deleted. multitasking queen πŸ’…
  • -p PASSWORD, --password=PASSWORD β€” in combination with action add, the password of the user will be set to PASSWORD. in combination with option test-user, the authentication will be tested with PASSWORD πŸ”‘
  • -n NAME, --name=NAME β€” set the user's name to NAME πŸ“
  • -t, --trusted β€” mark the user as trusted. a trusted user will be able to impersonate other users πŸ‘€βœ¨
  • --no-trusted β€” mark the user as not trusted. this is typically used to negate --trusted when modifying an existing user πŸ™…β€β™€οΈ
  • -r, --readonly β€” give the user read-only permissions, i.e. the user is not able to edit anything πŸ”’
  • --no-readonly β€” mark the user as not readonly. this is typically used to negate --readonly when modifying an existing user πŸ’«
  • -f DB_FILE, --file=DB_FILE β€” use the specified file as the SQLite database file [default: read from config] πŸ“
  • -c CONFIG, --config=CONFIG β€” read configuration from the configuration file CONFIG [default: /etc/nipap/nipap.conf] βš™οΈ
  • --version β€” show the program's version number and exit 🏷️

πŸ’€ RETURN CODES πŸ’€

the program will either return one of the following codes:

  • 0 on success πŸŽ‰
  • 1 on error 😬
  • 2 if the authentication with option --test-user failed πŸ’”
ngl, that 2 is the one you'll be staring at when someone swears their password is right and it absolutely is not πŸ™ˆ

Kristian Larsson, Lukas Garberg 2011-2015


and that's the whole page bestie 🫢 it's nipap-passwd(1) β€” same title up top, same title down at the bottom, no date stamp, no version line, just vibes and the manual name doing a little mirror moment. go forth and manage those users, you absolute main character πŸŒˆπŸ’–

πŸ“¦ where this page comes from