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.

I tried creating a file myFile and then typing chmod 000 myFile just to see if I got access denied trying to cat it or open it with vi, but no, I could still do whatever I wanted with it. So what is it with chmod on cygwin? Thanks!

share|improve this question
    
On what system are you using cygwin? –  Gnoupi Jul 2 '10 at 15:37
    
Windows XP Professional –  Pete Jul 2 '10 at 15:38

1 Answer 1

up vote 2 down vote accepted

The most restrictive permission that XP affords (for administrator accounts (which means most XP user)) is read-only or effective Unix mode 0444.

See Why doesn't Cygwin chmod work and weep over Using Windows security in Cygwin

share|improve this answer
1  
that's not really accurate; it's correct for FAT filesystems but most XP systems will be using NTFS. NTFS ACLs aren't directly translatable to standard Unix permissions (tho Unix has a form of ACL as well). –  quack quixote Jul 2 '10 at 16:54

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.