From 55021c8d0c50ccb12cc6afe2175da0e57359fe38 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 6 Jan 2020 10:07:34 +1100 Subject: [PATCH] add linux sudo --- categories/devops/linux.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/categories/devops/linux.md b/categories/devops/linux.md index 72e416d..c4bd0f9 100644 --- a/categories/devops/linux.md +++ b/categories/devops/linux.md @@ -18,6 +18,13 @@ ssh-add ~/.ssh/id_rsa ssh-copy-id user@ip -p 22222 ``` + +### Add user to the sudo group + +```bash +usermod -aG sudo youruser +``` + ### IP table ### Cron job @@ -231,6 +238,11 @@ rsync -avz --exclude downloads --exclude 'some-folder' /mnt rsync://user@192.168 You can export `RSYNC_PASSWORD` to pass password to the command. +#### Check rsync logs + +```bash +grep -ir rsync /var/log +``` ## Popular Distributions