[Discuss] odd file permissions problem with cygwin, windows XP, and matlab

pw p.willis at telus.net
Fri Oct 26 16:23:34 PDT 2007


Hello,

I have run into an odd file permissions problem
with windows XP, cygwin, and matlab.

If I make a directory in XP using the file manager
the directory has the permissions applied at creation
time inherent in my XP user permissions.

Matlab can access text files in this directory
structure just fine.

If I then open cygwin, process text files
into subdirectories in the same directory
everything works fine.

If I then try to access the files, with matlab
using a loop in a script, matlab complains that
the file either does not exist or does not have
adequate permissions to the file.

If, while debugging in matlab, I then take the same
file name and manually call:

[fid, message]=fopen(filename)

matlab then has no problem and opens the file...(???)


If I then use the windows XP file manager to move
all my cygwin created input files into a new directory
and then run the same matlab script against that directory instead
matlab works happily away.

All I can think is there is some slight difference with
cygwin perception of my user privileges and those being
transmitted from windows XP to matlab. Nothing shows
in the XP permissions bits that are visible to mortal users.

Incidentally, my XP user account has administrative permissions
so I can't understand where matlab has a problem with any file.
Not that I'd want to but I should be able to load my pagefile.sys
into matlab and it shouldn't care, nor should XP.

Anyway, I'm wondering if anyone has run into any related types
of file/directory permissions problems with cygwin or matlab
on XP.

Thanks,

Peter


More information about the Discuss mailing list