I have a file system and a specific path structure on my server that that is accessed by impersonated users.
There is a case that a user can't check his own folders existence.
My folder structure is as the following.
Base Path(only admin)
+->User Profile(only admin)
+->User's Area( owner user and andmin )
As an example:
...\Base Path\John's Profile\John's area
On the file system (NTFS permissions) John only has the rights to access (NTFS permissions) John's Area
. And I need to check the existence of John's area
programmatically.
Directory.Exists("...some other path parts...\Base Path\John's Profile\John's Area");
This returns true if I impersonate the admin, but it returns false if I impersonate John.
I thought John would be able to check his own folders existence -since in file system even if he cannot browse through Base Path -> John's Profile
to his area, he can directly go to ...\Base Path\John's Profile\John's Area
.
What permissions does he need to check that folders existence? Or is there something basic am I missing?