Richard Hector
2022-Mar-12 06:08 UTC
Trying to elevate rsync privileges when connecting over ssh without using NOPASSWD in sudoers
On 12/03/22 18:38, Richard Hector via rsync wrote:> And I do my backups (using dirvish) as root, using a key with a forced > command.FWIW, that forced command is here: https://github.com/rwhector/dirvish-forced-command It's rather unpolished and undocumented, but comments very welcome :-) I've also had an issue due to some server-side-only arguments to rsync being undocumented, which means I can't validate them, and basically have to accept anything ... I'd love to know why this is or has to be the case :-) I didn't get any particularly useful answers back in January 2019 ... Cheers, Richard
Kevin Korb
2022-Mar-12 06:22 UTC
Trying to elevate rsync privileges when connecting over ssh without using NOPASSWD in sudoers
Rsync includes a script named rrsync that handles this perfectly. On 3/12/22 01:08, Richard Hector via rsync wrote:> On 12/03/22 18:38, Richard Hector via rsync wrote: >> And I do my backups (using dirvish) as root, using a key with a forced >> command. > > FWIW, that forced command is here: > > https://github.com/rwhector/dirvish-forced-command > > It's rather unpolished and undocumented, but comments very welcome :-) > > I've also had an issue due to some server-side-only arguments to rsync > being undocumented, which means I can't validate them, and basically > have to accept anything ... I'd love to know why this is or has to be > the case :-) I didn't get any particularly useful answers back in > January 2019 ... > > Cheers, > Richard >-- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: https://sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,