linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Samuel <samuel@bcgreen.com>
To: "Robert L. Harris" <Robert.L.Harris@rdlg.net>
Cc: Miguel Gonz?lez Casta?os <mgc@tid.es>, linux-admin@vger.kernel.org
Subject: Re: rsync and ssh
Date: Mon, 23 Jun 2003 14:10:52 -0700	[thread overview]
Message-ID: <3EF76CDC.1060907@bcgreen.com> (raw)
In-Reply-To: <20030623165549.GB25076@rdlg.net>

The machine at the destination end should not need to be
uid 0 (root equiv) unless the source files belong to more than one
user and those uid's need to be preserved on the recipient system.

It's actually still possible to do it without root privs on the
destination system by setting up a cron job for each user on the
source system, and a trust to the equivalent users on the destination
system. (presumes a limited number of users or an automated system
for setting up the rsyncs).

To  make life a bit safer, you can also limit the SSH connection
on the recipient system such that only rsync is usable by the
RSA/DSA keys used to do the rsync.

Robert L. Harris wrote:
 >
 > Use "rsync -e ssh" and set up a trust.  Make sure that the system
 > initiating the connection is very secure otherwise you've opened up a
 > hole with the user's ID on the remote system.
 >
 > Ideal situation?
 >
 > Machine A sends a file to Machine B
 > Create a new id "rsync-foo" on both machines with 0 privs.  Make the
 >   home dirs /var/tmp/ and a shell of /dev/null (SHOULD work with rsync).
 > Establish trust from A to B using the rsync-foo user ID.
 >
 > rsync -e ssh -avHD -stats /source/files /target/files
 >
 > Then a cron job on MachineB which validates the data and then
 > copies/rsync's it to it's final destination.
 >
 > Robert
-- 
Stephen Samuel +1(604)876-0426                samuel@bcgreen.com
		   http://www.bcgreen.com/~samuel/
    Powerful committed communication. Transformation touching
        the jewel within each person and bring it to life.


      reply	other threads:[~2003-06-23 21:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-23 16:46 rsync and ssh Miguel González Castaños
2003-06-23 16:55 ` Robert L. Harris
2003-06-23 21:10   ` Stephen Samuel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EF76CDC.1060907@bcgreen.com \
    --to=samuel@bcgreen.com \
    --cc=Robert.L.Harris@rdlg.net \
    --cc=linux-admin@vger.kernel.org \
    --cc=mgc@tid.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).