# Re: How to check NTFS file permissions?

**URL:** <https://www.ruby-forum.com/t/re-how-to-check-ntfs-file-permissions/64545>\
**Category:** Ruby\
**Created:** [February 7, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/re-how-to-check-ntfs-file-permissions/64545 "2006-02-07T21:13:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [February 7, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/re-how-to-check-ntfs-file-permissions/64545/1 "2006-02-07T21:13:43Z")

</div>

> incarnation of the machine I’m on.
> 
> However it is marked Read Only, and there doesn’t seem to be  
> any way to change it. Properties window says it is Read only  
> (with a square, not a  
> checkmark) and Hidden, and it lets me think I’m changing it,  
> even asks if I want to change all subordinates, but never  
> changes it. That’s an OT, but I’d be happy to hear a solution to it.

I’m not sure what you mean by “with a square, not a checkmark”. It’s  
either read only or it’s not.

> The problem I’m having is that File.readable? and  
> File.executable? both give me true for that directory, but if  
> I try Dir.chdir into it, it throws an exception.
> 
> Is there a check I can do, or is my only option: rescue  
> Errno::EACCES?

Perhaps win32-file could help you.

Regards,

Dan
