vote up 0 vote down star

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......

flag
actually it's not. the evil bit is evil: faqs.org/rfcs/rfc3514.html – ~quack Nov 9 at 18:02

2 Answers

vote up 1 vote down check

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.

link|flag
vote up 0 vote down

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...

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.