documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Invoke rsync using sudo

Open gStart9 opened this issue 9 months ago • 1 comments

This sudo is not necessary, unless the user is trying to invoke the command as an unprivileged user. This wouldn't happen if they're working through the guide exactly in sequence, but if the transfer is interrupted and they just ssh back in, they may forget to perform the sudo command in the previous steps, so this will be necessary. It was already confusing for at least one user, and there's no harm in adding it. While not necessarily necessary (😉) it won't hurt even if the user is already root, and it's required for it to work if they aren't.

gStart9 avatar Mar 21 '25 20:03 gStart9

I don't have strong emotions on this at all. Like you say, it does no harm technically. On the other hand if someone told me to sudo -i and then sudo something I'd doubt the guide. But maybe people smarter than me would instantly see why we'd added it.

Can I sell you on a note "If you get disconnected at this step, you will need to preface rsync with sudo" ? Though it's probably easier to go with your approach. If you want it, I'll merge it and then add this change to the other docs.

stupleb avatar Mar 22 '25 16:03 stupleb