SAMIZDAT-ROLE(1)

πŸ“¦ version 0.7.1, in debian bookworm, ubuntu jammy, ubuntu noble

✨ SAMIZDAT-ROLE(1) ✨

okay so bestie, welcome to the General Commands Manual page for samizdat-role πŸ’– yes it's a real command, yes it's iconic, and yes we're gonna go through it together, no skipped sections, no vibes-based summary, fr fr.


🌸 NAME 🌸

samizdat-role β€” Samizdat role management πŸ‘‘

πŸŽ€ SYNOPSIS πŸŽ€

samizdat-role [ OPTIONS ] --list

samizdat-role [ OPTIONS ] --grant MEMBER

samizdat-role [ OPTIONS ] --revoke MEMBER

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically samizdat-role lets you view, grant, and revoke member access to privileged roles on a Samizdat site. that's the whole main character job description. you look at who has power, you hand out power, you take power away. the way that this is literally role management πŸ’…

πŸ’œ OPTIONS πŸ’œ

  • --site SITE β€” the name of the Samizdat site. lowkey important: this one overrides the SAMIZDAT_SITE environment variable 🌈 so if the env var is saying one thing and you're saying another, you win. main character energy.
  • --role ROLE β€” the name of a role. the default is moderator, so if you don't say anything, that's who you're talking about ✨
  • --grant MEMBER β€” grant ROLE privileges to MEMBER 🎁 MEMBER can be specified as a resource id or a login name.
NB: to grant or revoke privileges using this command, you must use database superuser privileges (in PostgreSQL, this is postgres). not me being locked out of my own glow-up 😭 you need the big keys, periodt.
  • --revoke MEMBER β€” revoke ROLE privileges from MEMBER πŸ’€ MEMBER can be specified as a resource id or a login name.
NB: to grant or revoke privileges using this command, you must use database superuser privileges (in PostgreSQL, this is postgres). same deal bestie, the superuser gate is the superuser gate πŸ™ˆ

⭐ EXAMPLE ⭐

su postgres -c 'samizdat-role --site s1 --grant joe --role moderator --list'

grant moderator privileges to the member joe of site s1 and list all moderators 🫢 one command, three jobs, absolutely ate.


πŸ‘‘ AUTHOR πŸ‘‘

this manual page was written by Dmitry Borodaenko <angdraug@debian.org>. permission is granted to copy, distribute and/or modify this document under the terms of the GNU GPL version 3 or later ⭐ so like, share the love, legally πŸ’–


and that's a wrap on page SAMIZDAT-ROLE(1) from the General Commands Manual, bestie πŸŽ€ go grant some roles, revoke some roles, vibe check your site name, and always remember the PostgreSQL superuser thing or it's giving error message 😭 bye ily πŸ’œ

πŸ“¦ where this page comes from