From 76ef9afd4f21538cf2f6b3ceaebea16b7f0b8115 Mon Sep 17 00:00:00 2001 From: Alex Grin <362784+lyoshenka@users.noreply.github.com> Date: Mon, 7 Nov 2022 09:52:11 -0500 Subject: [PATCH] Updated Setting up a Hub (markdown) --- Setting-up-a-Hub.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Setting-up-a-Hub.md b/Setting-up-a-Hub.md index f2a5f45..d729775 100644 --- a/Setting-up-a-Hub.md +++ b/Setting-up-a-Hub.md @@ -5,15 +5,12 @@ ## create lbry user ``` -sudo adduser lbry +sudo adduser lbry --disabled-password --gecos "" +sudo -H -u lbry bash -c 'mkdir -p /home/lbry/.ssh && echo "YOUR-SSH-KEY" >> /home/lbry/.ssh/authorized_keys' +sudo -H -u root bash -c 'echo "lbry ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' ``` - - -## let lbry do sudo without password - -https://www.atlantic.net/vps-hosting/how-to-setup-passwordless-sudo-for-a-specific-user/ - +## logout and log in as lbry user ## install docker