|
Home > Archive > Linux Debian support > February 2006 > rsync with different users
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
rsync with different users
|
|
| Luis P. Mendes 2006-02-02, 7:49 am |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm using Debian in one box and Slackware in another. Both are desktops.
In both I have one account and I'd need to rsync the contents of one
directory in one to the other.
The problem is my uid and gid are different between the two
distributions, so I have to su and then chown the files everytime I rsync.
What do you recommend: change uid for one account? anything else?
Luis P. Mendes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD4gTWHn4UHCY8rB8RAul6AJ93Xgad62of
HHfH1tXiI1FfqxKe9QCggD9P
DvTlDztrnR7WVkRLEC6nV4E=
=XYHY
-----END PGP SIGNATURE-----
| |
| gregor herrmann 2006-02-02, 5:48 pm |
| On Thu, 02 Feb 2006 13:10:46 +0000, Luis P. Mendes wrote:
> The problem is my uid and gid are different between the two
> distributions, so I have to su and then chown the files everytime I rsync.
Don't know about rsync but maybe unison could be a viable
replacement.
gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`- NP: Tom Waits: Baby Gonna Leave Me
| |
| Bill Marcum 2006-02-02, 5:48 pm |
| On Thu, 02 Feb 2006 13:10:46 +0000, Luis P. Mendes
<luis_lupe2XXX@netvisaoXXX.pt> wrote:
>
> Hi,
>
> I'm using Debian in one box and Slackware in another. Both are desktops.
>
> In both I have one account and I'd need to rsync the contents of one
> directory in one to the other.
>
> The problem is my uid and gid are different between the two
> distributions, so I have to su and then chown the files everytime I rsync.
>
> What do you recommend: change uid for one account? anything else?
>
> Luis P. Mendes
>
rsync filename other_user@other_host:
rsync other_user@other_host:filename .
or create ~/.ssh/config containing
Host other_host
User other_user
--
Karl's version of Parkinson's Law: Work expands to exceed the time alloted it.
| |
| Luis P. Mendes 2006-02-02, 5:48 pm |
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
| rsync filename other_user@other_host:
| rsync other_user@other_host:filename .
|
| or create ~/.ssh/config containing
| Host other_host
| User other_user
I forgot to mention that I use a flash memory usb pen as a 'middle-man'.
debian -- rsync to --> pen -- (then, at other place) --> rsync to
slackware. And vice-versa.
The name of the user is the same, but the uid not, nor is the gid.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD4ldkHn4UHCY8rB8RAizkAKCdF8gEwV5K
J4ze8H2ycvP7Jij8NgCglluf
7D6VN+1EglCt359vO2tfd/M=
=aOGR
-----END PGP SIGNATURE-----
| |
| Bill Marcum 2006-02-03, 5:48 pm |
| On Thu, 02 Feb 2006 19:03:00 +0000, Luis P. Mendes
<luis_lupe2XXX@netvisaoXXX.pt> wrote:
>
>
>| rsync filename other_user@other_host:
>| rsync other_user@other_host:filename .
>|
>| or create ~/.ssh/config containing
>| Host other_host
>| User other_user
>
> I forgot to mention that I use a flash memory usb pen as a 'middle-man'.
>
> debian -- rsync to --> pen -- (then, at other place) --> rsync to
> slackware. And vice-versa.
>
> The name of the user is the same, but the uid not, nor is the gid.
Make sure the files and directories on the usb pen have read permission
for all users.
chmod -R a+r /usb_mount_point
You could use tar instead of rsync; that way only the tar file has to
be world-readable. When you extract a tar file as a non-root user, all the
files will be owned by that user. If you are root on either machine, you
could create a user with the same UID as your user on the other machine.
--
<gholam> well I'm impressed
<gholam> win98 managed to crash X from within vmware.
* gholam applauds.
|
|
|
|
|