rsync from Ubuntu to Ubuntu as root, possible?
Brian McKee
brian.mckee at gmail.com
Thu Jul 12 16:03:11 UTC 2007
On 12/07/07, Fajar Priyanto <fajarpri at cbn.net.id> wrote:
> Hi all,
> I'm new to Ubuntu, and I'm aware that it's root account is not active and that
> we should use sudo. But, I need to do an rsync from Ubuntu to Ubuntu as root.
> Is it possible, or should I activate the root account?
> Example:
> sudo rsync -e ssh root at 10.0.0.19:/var/lib/samba /var/lib/samba
Make a little wrapper script - stick it in usr local bin and edit
/etc/sudoers to all a regular user to run only that wrapper script as
root.
Then you'd just
ssh regularUser at ubuntubox 'backupSambaScript'
HTH
Brian
More information about the ubuntu-users
mailing list