Why ZwSetInformationFile returns STATUS_ACCESS_DENY

Hi all,

When I using “ZwSetInformationFile” to delete file on network drive, it
also returns “STATUS_ACCESS_DENY”. I am sure I have the privilege to
access/modify file on that network drive.

Please advise me on making the API work ?

Thanks a lot.

– Philip

Are you sure? If you’re trying to access a network file in kernel mode
from the system context (worker thread, etc.) you won’t have privileges

  • you need to impersonate the user.

  • Nick Ryan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Philip Hong
Sent: Wednesday, May 21, 2003 3:49 AM
To: File Systems Developers
Subject: [ntfsd] Why ZwSetInformationFile returns STATUS_ACCESS_DENY

Hi all,

When I using “ZwSetInformationFile” to delete file on network
drive, it also returns “STATUS_ACCESS_DENY”. I am sure I have
the privilege to access/modify file on that network drive.

Please advise me on making the API work ?

Thanks a lot.

– Philip


You are currently subscribed to ntfsd as: xxxxx@nryan.com
To unsubscribe send a blank email to xxxxx@lists.osr.com