mount usb: same username different uid: problem
Uwe Brauer
oub at mat.ucm.es
Tue Jun 19 13:19:16 UTC 2012
>> On Mon, 18 Jun 2012 11:23:54 -0700, NoOp <glgxg at sbcglobal.net> wrote:
> On 06/17/2012 11:35 PM, Uwe Brauer wrote:
> ...
>> Another solution would be to use
>> sudo rsync
>>
>> If rsync had an option to specify uid and gid on the target
>> system which I still don't know
> grsync has the options:
> o 'Preserve owner/Preserve group/...permissions/...time.
> o 'Advanced Options|Don't map uid/gid values'.
> o 'Extra options' allows you to execute a command before/after rsync &
> 'Run as superuser'.
> You can save the session so that you simply call up the same one next
> time, click & go.
Cool, but it does not help.
If I am user2 (id=1002) but the disk (jfs) is mounted as
user1 (id=1000) I *cannot* copy files via rsync to the disk
even with the options you mentioned, user2 can simply not
write on that disk via rsync.
One option would to do:
rsync -auvzx /home/user2/dir user1 at localhost:/media/disk/user1
But then I need the password of user1....
Uwe Brauer
More information about the ubuntu-users
mailing list