Click here to get back home

W2K3 Server File Deletion From Windows Service

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
W2K3 Server File Deletion From Windows Service Corey Ellsworth 08-11-2006
Posted by Corey Ellsworth on August 11, 2006, 4:20 pm
Please log in for more thread options
I have written a Windows Service in VB.NET. As part of its processing
routine, this service deletes all files in a temporary directory. For
compatablity with a 3rd party component that we are using, this service is
running under a Windows domain account. I have given the account that the
service is running under "Full Control" of the temporary directory it is
supposed to delete the files from. However, when the code tries to do the
deletion an "Access is denied" error is handled and the files are not
deleted. How can an account that has "Full Control" permissions to a
directory be denied access to delete files in that directory? What user
permission (Local Security Policy?) governs the ability for a user account
to delete files? Is there something special about a user account that is
running as a service that would preclude it from delete files? Thanks for
any help that can be offered.

Corey Ellsworth



Posted by anon on August 11, 2006, 7:46 pm
Please log in for more thread options
go under local security policy (it's in admin tools) and
enable auditing for 'object access' failures. Then go to
the security tab on that directory & enable auditing for
all perms for user 'everyone.' Then check your security
logs in the event viewer after you get an error.



Similar ThreadsPosted
at job versus windows service on a w2k3 server February 22, 2006, 3:31 am
prevent file deletion January 3, 2007, 1:11 pm
Windows Service runs batch file requiring user responses on WS2003 August 12, 2005, 9:40 pm
Interactive Service - Windows 2003 Server November 1, 2006, 7:25 am
RPC Security Service fails to start on Windows 2003 Server July 12, 2007, 6:11 am
W2K3 & VPN blocking access to server May 17, 2006, 9:10 pm
W2K3 Member Server unable to resolve domain SIDs October 12, 2006, 11:56 am
Issuing of server/client authentication certs from an Ent. CA running on W2k3 Standard Edition May 14, 2007, 2:43 am
Prevent folder deletion October 24, 2007, 8:27 am
the file owner that created by a service September 6, 2007, 10:01 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap