change UID+GID on target system?

2012-06-18 Thread Uwe Brauer
Hello I googled about my problem and found some hints but not a complete solution. Situation: On laptop 1, I am user oub (uid=1000) and in the sudo list. I connect an USB drive (jfs file system), its get automatically mounted with the correct uid. I copy files with rsync from laptop 1 to the USB

Re: change UID+GID on target system?

2012-06-18 Thread Paul Slootman
On Mon 18 Jun 2012, Uwe Brauer wrote: > > Situation: > On laptop 1, I am user oub (uid=1000) and in the sudo list. > I connect an USB drive (jfs file system), its get automatically > mounted with the correct uid. This makes no sense. There is no UID option for mounting a jfs filesystem; that's o

Re: change UID+GID on target system?

2012-06-18 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The problem is that you have different UIDs on different systems but are trying to use the same file system. The files within the file system have the ownerships stored only by the numeric UIDs not the user names. If you then take that file system an

Re: change UID+GID on target system?

2012-06-18 Thread Uwe Brauer
>> On Mon, 18 Jun 2012 15:33:09 +0200, Paul Slootman >> wrote: > On Mon 18 Jun 2012, Uwe Brauer wrote: >> > This makes no sense. > There is no UID option for mounting a jfs filesystem; > that's only appropriate for e.g. VFAT where there is no concept of UID. > After mountin

RE: change UID+GID on target system?

2012-06-18 Thread Voelker, Bernhard
Uwe Brauer wrote: > Situation: > On laptop 1, I am user oub (uid=1000) and in the sudo list. > I connect an USB drive (jfs file system), its get automatically > mounted with the correct uid. > I copy files with rsync from laptop 1 to the USB. > ( rsync -auvz --progress /home/oub/files /media/usb )

Re: change UID+GID on target system?

2012-06-18 Thread Uwe Brauer
>> On Mon, 18 Jun 2012 15:25:30 +, "Voelker, Bernhard" >> wrote: > Uwe Brauer wrote: > Why not write the date on the jfs drive as uid=1002 on laptop1? > Unfortunately, ssh doesn't allow numerical user ids AFAIK, but > if you have a second user, e.g. "u1002", then you could do:

RE: change UID+GID on target system?

2012-06-19 Thread Voelker, Bernhard
Uwe Brauer wrote (June 18, 2012 6:21 PM) >>> On Mon, 18 Jun 2012 15:25:30 +, "Voelker, Bernhard" >>> wrote: > > > Uwe Brauer wrote: > > > Why not write the date on the jfs drive as uid=1002 on laptop1? > > > Unfortunately, ssh doesn't allow numerical user ids AFAIK, but > > if you ha

Re: change UID+GID on target system?

2012-06-19 Thread Paul Slootman
On Mon 18 Jun 2012, Uwe Brauer wrote: > >> On Mon, 18 Jun 2012 15:33:09 +0200, Paul Slootman wrote: > >> This makes no sense. > > >> There is no UID option for mounting a jfs filesystem; >> that's only appropriate for e.g. VFAT where there is no concept of UID. >> After mounting

Re: change UID+GID on target system?

2012-06-19 Thread Uwe Brauer
>> On Tue, 19 Jun 2012 08:18:23 +, "Voelker, Bernhard" >> wrote: > Uwe Brauer wrote (June 18, 2012 6:21 PM) >> >> rsync -avx /path/to/src oub@localhost:/path/to/usb/dest >> >> Because otherwise the system does not recognise the passwd >> of u1002 > I don't understand.

RE: change UID+GID on target system?

2012-06-19 Thread Voelker, Bernhard
Uwe Brauer wrote (June 19, 2012 2:46 PM): > >> On Tue, 19 Jun 2012 08:18:23 +, "Voelker, Bernhard" > >> wrote: > >> Uwe Brauer wrote (June 18, 2012 6:21 PM) >>> >>> rsync -avx /path/to/src oub@localhost:/path/to/usb/dest >>> >>> Because otherwise the system does not rec

Re: change UID+GID on target system?

2012-06-20 Thread Uwe Brauer
>> On Tue, 19 Jun 2012 13:50:00 +, "Voelker, Bernhard" >> wrote: >> Oh I see misunderstanding then. So what you propose is >> basically a chown of the directory in question? > no. Why not? I am confused. If I do, as user1 knowing passwd user2 Laptop1 rsync -auvz /home/oub/sour

RE: change UID+GID on target system?

2012-06-20 Thread Voelker, Bernhard
Uwe Brauer wrote (June 20, 2012 12:57 PM): > >> On Tue, 19 Jun 2012 13:50:00 +, "Voelker, Bernhard" > >> wrote: > >>> Oh I see misunderstanding then. So what you propose is >>> basically a chown of the directory in question? > >> no. > > > Why not? I am confused. > > If I do, as

Re: change UID+GID on target system?

2012-06-20 Thread josephj
If that's a concern, then you could just use a service like dyndns to get an address that's reliable. For non-commercial use, it's free. Joe > Because the connection is very unreliable, laptop 2 has a > dynamic IP, and I am paranoiac and don't want to have > > sshd: ALL > > in hosts.allow on Lap