Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

rsync with different users

 
   Soft32 Home -> Linux2 Arch -> General Discussions RSS
Next:  K7V-X SE is compatibly?  
Author Message
Luis P. Mendes

External


Since: Sep 26, 2005
Posts: 4



(Msg. 1) Posted: Thu Feb 02, 2006 7:10 am
Post subject: rsync with different users
Archived from groups: alt>os>linux>debian (more info?)

-----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

iD8DBQFD4gTWHn4UHCY8rB8RAul6AJ93Xgad62ofHHfH1tXiI1FfqxKe9QCggD9P
DvTlDztrnR7WVkRLEC6nV4E=
=XYHY
-----END PGP SIGNATURE-----
Back to top
Login to vote
Bill Marcum

External


Since: Oct 16, 2003
Posts: 646



(Msg. 2) Posted: Thu Feb 02, 2006 7:10 am
Post subject: Re: rsync with different users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 02 Feb 2006 13:10:46 +0000, Luis P. Mendes
<luis_lupe2XXX DeleteThis @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.
Back to top
Login to vote
gregor herrmann

External


Since: Jan 07, 2006
Posts: 43



(Msg. 3) Posted: Thu Feb 02, 2006 12:25 pm
Post subject: Re: rsync with different users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
Back to top
Login to vote
Luis P. Mendes

External


Since: Sep 26, 2005
Posts: 4



(Msg. 4) Posted: Thu Feb 02, 2006 1:03 pm
Post subject: Re: rsync with different users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

-----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

iD8DBQFD4ldkHn4UHCY8rB8RAizkAKCdF8gEwV5KJ4ze8H2ycvP7Jij8NgCglluf
7D6VN+1EglCt359vO2tfd/M=
=aOGR
-----END PGP SIGNATURE-----
Back to top
Login to vote
Bill Marcum

External


Since: Oct 16, 2003
Posts: 646



(Msg. 5) Posted: Fri Feb 03, 2006 5:51 am
Post subject: Re: rsync with different users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 02 Feb 2006 19:03:00 +0000, Luis P. Mendes
<luis_lupe2XXX DeleteThis @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.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rsync not working when logged in as root - Hi, I have a strange (at least for me) issue with the behavior of rsync. If I make a copy of a directory (on the..

LINUX USERS ARE STUPID - windows xp is cool

Creating webpages for all users - Hi all, Recently I have bought (leased actually) a server. I've set everything up, all works fine. Now I have two..

Getting vsftpd local users to work - I have vsftpd running. the vsftpd.conf is: anonymous_enable=NO local_enable=YES dirmessage_enable=YES..

Multiple users with graphical desktop - Is it possible to configure/enable multiple users to have their own desktops simultaneously with Ubuntu? I would then b...

SSH: public keys for multiple users - Hey everyone, I'm having a bit of a problem setting up SSH access for multiple users with public (RSA) keys on my..
       Soft32 Home -> Linux2 Arch -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]