mount usb: same username different uid: problem

NoOp glgxg at sbcglobal.net
Mon Jun 18 18:23:54 UTC 2012


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.

$ sudo apt-get install grsync

https://help.ubuntu.com/community/rsync
[screenshot down below '5. Basic Options']
http://www.opbyte.it/grsync/

And of course, grysync is a gui frontend for rsync. So rsync will also
have those options:

http://manpages.ubuntu.com/manpages/precise/man1/rsync.1.html
--numeric-ids
With this option rsync will transfer numeric group and user IDs
rather than using user and group names and mapping them at both
ends.

By default rsync will use the username and groupname to
determine what ownership to give files. The special uid 0 and
the special group 0 are never mapped via user/group names even
if the --numeric-ids option is not specified.

If a user or group has no name on the source system or it has no
match on the destination system, then the numeric ID from the
source system is used instead. See also the comments on the
“use chroot” setting in the rsyncd.conf manpage for information
on how the chroot setting affects rsync’s ability to look up the
names of the users and groups and what you can do about it.

http://manpages.ubuntu.com/manpages/precise/man5/rsyncd.conf.5.html
[ uid, gid, numeric-ids, filter]

I use grysync - perhaps someone on the list that is well versed in rsync
cli can advise on the exact command(s) you need to use.






More information about the ubuntu-users mailing list