Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
actually it's not. the evil bit is evil: faqs.org/rfcs/rfc3514.html –  quack quixote Nov 9 '09 at 18:02

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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