1

Yes, I know, the archive bit is evil.

That being said, is there support for querying it with 'find', and modifying it with 'chmod'?

My googling has turned up nothing......

1

2 Answers 2

2

I'd use find + attrib:

$ find . -option whatever -exec attrib -A {} \;

attrib is the old DOS command for setting & clearing those attributes. This works for me on WinXP Pro SP2; no idea if attrib is still available on Vista/Win-7.

1

I don't have a solution that will work in all situations, however, on NTFS file systems, first edit your CYGWIN environment variable, adding ntsec. On NTFS you can then use chmod to manage file permissions. This variable is typically set in /../cygwin/cygnus.bat. When setting CYGWIN, separate each option with a space.

I'll try to figure out a working example cmd line...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .