If the uid or gid of a file is 4294967295
, I need to modify its permissions with chown
. This will be a bandaid solution for an rsync issue in cygwin (Details here).
How can this be implemented?
If the uid or gid of a file is 4294967295
, I need to modify its permissions with chown
. This will be a bandaid solution for an rsync issue in cygwin (Details here).
How can this be implemented?
XY indeed. Just use find
:
find yourdir \( -uid 4294967295 -o -gid 4294967295 \) \
-exec chown youruser:yourgroup {} +