From 65415454ec328e6b9b7b052cbdf60ed387e74040 Mon Sep 17 00:00:00 2001 From: nomore1007 <31173535+nomore1007@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:29:08 -0700 Subject: [PATCH] Update README.md The command will not work unless ran as sudo. I figured it out after attempts to set up a server. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65746a0..f3c09a2 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ Actually there are no functions in the client interface to set a user as admin. The following command will grant admin privilege to the specified user: ``` -su --command="psql matrix_synapse" postgres <<< "UPDATE users SET admin = 1 WHERE name = '@user_to_be_admin:domain.tld'" +sudo su --command="psql matrix_synapse" postgres <<< "UPDATE users SET admin = 1 WHERE name = '@user_to_be_admin:domain.tld'" ``` ### Administration API