I have my system configured to do
rclone selfupdate via a shell script that updates other things. This worked until rclone actually found an update, at which point, this:
Error: /usr/bin/rclone: file is not writable, run self-update as root
It would be better were rclone to request elevation, interactively. For if I replace
rclone selfupdate with
sudo rclone selfupdate, then even the check for updates requires root; thus, I have to grant root access - via entering my password, unless I give the whole script root - even if there is no update to perform. What if I do give the whole script root? Then, again: even if there is no update (of rclone or anything else) to perform, I must enter the password - unless I use sudoers and unless something else in the script has caused elevation. I could use sudoers. I would rather though that rclone prompted for elevation when and indeed only when it needs to install an updated version.
sudo rclone selfupdate performs the update but also spits out the following.
NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults. That message seems to suggest that I am trying to make rclone perform its normal operations as root.