08-08-2013 07:26 AM - edited 08-08-2013 07:29 AM
Dear users,
I am trying to solve a write permission problem on a NTFS (Windows2003) server and on my local computer. There are various folders on the server, for which I do or do not have write permissions. Using "Get Permissions" I am trying to decide, whether I am allowed to write there some data or not -- to avoid any error message. Running Get Permissions on both kinds of folders yields "511", which means. I do have a write permission (right?). There is no difference, between the two results, but in practice writing into one of these folders results in error.
Experiment: I created a folder locally, for which I removed all of my permissions. Currently I cannot open, write, or delete this folder. But Get Permissions still says that the folder has 511 permissions, i.e., write permissions for the executing user. Why? What could go wrong? What am I seeing wrong?
Kind regards,
p.s. the owner and the group are NULL ("", empty string) says Get Permissions, too. That is not also not awaited.
08-14-2013 02:11 AM
Hi,
it seems like the VI is not as powerful as you want it to. The help to "Setting Permissions" states:
...This structure is based on the Linux permission bits that govern read, write, and execute permissions for users, groups, and others.
(Windows) Use of the permissions parameter is very limited on non-Linux operating systems. You can use permissions to change only write permissions for users (bit 7); the operating system ignores all other changes to the bits....
I hope this information helps.
Kind regards
Heinz
08-14-2013 04:18 AM - edited 08-14-2013 04:30 AM
Yes, it helps. Thank you, HeinzG.! I accept the fact, although I am not about to write the bits, but to read them. And then, isn't there another solution? Searching for it...
p.s. I know hot to change the attributes http://forums.ni.com/t5/LabVIEW/how-do-I-set-file-permissions/td-p/656131 it is a mistique to me, how to list/display them.