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