Accessing CIFS share from system thread

I have a question regarding CIFS. I have mapped a drive to network share.
Looks like CIFS allows file access to only logged in user. Is it possible to
open a file on CIFS share from the thread created in kernel mode. I am able
to open file in login user context, but not in system context.

Similarly in Unix world there is a term “no root squash” in NFS world, which
basically means allowing root to access network partition. Do we have
similar option in windows so that we can open files from CIFS share in
system thread context?

Regards
Rohit Gauba

"A positive thought is the seed of a positive result"thing

>CIFS share in system thread context?

You will need to a) get the token object of some logged-on user and then b) impersonate it.

Probably this is better to be done in user mode from the helper process.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com