diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-09-05 19:21:10 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-09-05 19:21:10 +0200 |
| commit | bc07248695d8e9038d3efcf9388296fd8a8996dd (patch) | |
| tree | ca3eb7314c0083bca75ed33ade294c5b57e7927d /guides | |
| parent | 2ec71ad47776e67fc1087cbd9e30d6c0f61f7c89 (diff) | |
| download | memory-leaks-bc07248695d8e9038d3efcf9388296fd8a8996dd.tar.xz | |
Update some notes
- tweak bogus $(groups | …) command, which happened to work because
"debian" was the first group that showed up in the output
- "re-open" sh-mode itch
Diffstat (limited to 'guides')
| -rw-r--r-- | guides/cloud/vps.org | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/cloud/vps.org b/guides/cloud/vps.org index 71fda14..c73a7b9 100644 --- a/guides/cloud/vps.org +++ b/guides/cloud/vps.org @@ -26,7 +26,7 @@ So instead, I'll - create my own user account: ~sudo adduser $name~ - add it to all groups =debian= belongs to: #+begin_src sh - groups=$(groups | sed -e 's/ *debian *//' -e 's/ /,/g') + groups=$(groups | tr ' ' '\n' | grep -v debian | paste -sd,) sudo usermod --append --groups ${groups} ${name} #+end_src - only allow password authentication over SSH for this new user |
