This is the mail archive of the
mailing list for the Cygwin project.
RE: permission question
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:email@example.com] On
> Behalf Of Greg Freemyer
> Sent: December-07-16 5:08 PM
> To: Brian.Inglis@systematicsw.ab.ca; firstname.lastname@example.org
> Subject: Re: permission question
> If I'm going to relegate rsync to the trash bin due to it not
> supporting Windows permissions well enough to be useful, I've got
> other Windows recursive copy tools I use that don't preserve
> permissions either.
> I can't tell you how much I love Windows security permissions. :(
> In the mean time I have a huge number of folders now on my destination
> drive I need to delete. (over a million files it seems).
> Neither cygwin, nor windows says I have permission to delete them.
> Any idea how I can do it short of reformating.
You should be able to take ownership recursively of the offending files and then remove them.
(Right click - Security => Advanced => Owner Tab => Edit (you may be prompted by UAC for admin credentials) => Other users or groups => pick one
Don't forget to select "Replace owner on subcontainers and objects". In a separate step, reset the permissions recursively to get full control, then delete everything.)
By the way, did you ever try to setup fstab to apply noacl to default mounts before doing your rsynch?
I wonder if that would have reduced your problems.
> Greg Freemyer
> On Wed, Dec 7, 2016 at 3:39 PM, Brian Inglis
> <Brian.Inglis@systematicsw.ab.ca> wrote:
> > On 2016-12-07 13:12, Erik Soderquist wrote:
> >>> I really like cygwin and have used it for a decade plus. Only in the
> >>> last year or 18-months have I noticed significant permission issues
> >>> that slow down my workflow.
> >>> Copying these folders/files from one drive to another is a task I'd
> >>> like to accomplish, but even more importantly I'd like to understand
> >>> how to work with permissions in cygwin. As it is, I'm concerned I
> >>> will have to leave cygwin behind and I don't want to do that.
> >> I've been a Windows and Linux admin for years, and Windows
> >> can be a pain, but can also be very granular.
> >> What I normally do for something like this is use robocopy's "backup
> >> switch to bypass permissions on the source entirely and intentionally not
> >> copy the permissions to the destination, then set up the permissions I
> >> on the destination after the copy is complete.
> >> The "backup mode" option requires either backup operator or local admin
> >> permissions to use.
> > Concur and recommend for local copies:
> > robocopy src dst /s /sl /xj /copyall /zb /nfl /ndl /np /mt:8 /r:0 /w:0
> > to copy non-empty directories; keep winsymlinks as is; skip junctions;
> > all info; backup fallback; no file, directory, or progress logging;
> > 8 threads, no retries, no waits: use /copy (like cp -p) instead of
> > /copyall to skip security info.
> > --
> > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
> > --
> > Problem reports: http://cygwin.com/problems.html
> > FAQ: http://cygwin.com/faq/
> > Documentation: http://cygwin.com/docs.html
> > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple