fromdir="$scratchdir/from"
todir="$scratchdir/to"
-mygrps="`groups`" || fail "Can't get groups"
+# TODO: I guess some systems will not have 'id', and therefore we have
+# to ship or emulate it.
+mygrps="`rsync_getgroups`" || fail "Can't get groups"
mkdir "$fromdir"
for g in $mygrps