samizdat-role1
Samizdat role management
Usage
samizdat-role [OPTIONS]
--list
samizdat-role [OPTIONS]
--grant
MEMBER
samizdat-role [OPTIONS]
--revoke
MEMBER
Overview
samizdat-role Allows one to view, grant, and revoke member access to privileged roles on a Samizdat site.
Options
-
--site SITE -
Name of the Samizdat site (overrides
SAMIZDAT_SITEenvironment variable).
-
--role ROLE -
Name of a role, default is
moderator.
-
--grant MEMBER -
Grant ROLE privileges to MEMBER. MEMBER may be specified as resource id or login name.
-
NB: To grant or revoke privileges using this command, you must use database superuser privileges (in PostgreSQL, this is 'postgres').
-
--revoke MEMBER -
Revoke ROLE privileges from MEMBER. MEMBER may be specified as resource id or login name.
-
NB: To grant or revoke privileges using this command, you must use database superuser privileges (in PostgreSQL, this is 'postgres').
Examples
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.
Releases
6 releases since Debian 7 (Wheezy); the text changed 1 time.