OpenSSH 8.0 released
OpenSSH 8.0 released
Posted Apr 27, 2019 22:49 UTC (Sat) by naptastic (guest, #60139)In reply to: OpenSSH 8.0 released by nilsmeyer
Parent article: OpenSSH 8.0 released
I've wondered for a long time how people do things like rsync to root-owned destinations when their systems don't allow direct root SSH. I'm almost scared to ask, but can you elaborate on how it's done?
The top result via Google is from Ask Ubuntu [1], and--don't do this--it recommends adding "ALL=NOPASSWD:<path to rsync>" to sudoers, which is terrifying on so many levels.
(In case it's unclear, really, DO NOT EVER DO THIS. Running rsync as root means arbitrary file operations as root. It will let any program on your system to get root for free: just drop in a malicious shared library, steal the nearest Bitcoin wallet, and eat all the cheese in the house.)
[1] https://askubuntu.com/questions/719439/using-rsync-with-sudo-on-the-destination-machine
