PC Review


Reply
Thread Tools Rate Thread

Access denied caused by 'svchost.exe -k netsvcs' process?

 
 
D.J. Heap
Guest
Posts: n/a
 
      2nd Oct 2003
Can anyone shed some light on what the 'svchost.exe -k netsvcs' process is
doing when it opens up and queries private files that an application is
trying to read/write/rename/delete?

A very busy (and single threaded) application that is heavily creating,
writing, renaming and removing files occasionally gets an 'Access denied'
(not even 'file in use' or 'sharing violation') error while dealing with
it's own private files. They are not read-only (although they recently may
have been), the process/user has full control, and they are not in use by
any other application.

Using NTFILEMON from SysInternals it appears that the culprit dorking with
the files while the app is still working with them is the 'svchost.exe -k
netsvcs' process. Index service is disabled and this occurs on a freshly
installed and updated XP Prof machine -- no third party stuff installed
(especially anti-virus which was my first suspicion).

According to a MS KB article this particular invocation of svchost is
running several services (
http://support.microsoft.com/?kbid=314056 )...which one is messing with an
app's private files? Is this expected behavior? Is it possible to shut it
off?

Simply retrying the operation (MoveFileEx, or DeleteFile) in a loop works,
but how *lame* to have to sprinkle that kind of code all over where those
functions are used.

Any information would be greatly appreciated.

Thanks!

DJ


 
Reply With Quote
 
 
 
 
Phil Robyn
Guest
Posts: n/a
 
      2nd Oct 2003
D.J. Heap wrote:

> Can anyone shed some light on what the 'svchost.exe -k netsvcs' process is
> doing when it opens up and queries private files that an application is
> trying to read/write/rename/delete?
>
> A very busy (and single threaded) application that is heavily creating,
> writing, renaming and removing files occasionally gets an 'Access denied'
> (not even 'file in use' or 'sharing violation') error while dealing with
> it's own private files. They are not read-only (although they recently may
> have been), the process/user has full control, and they are not in use by
> any other application.
>
> Using NTFILEMON from SysInternals it appears that the culprit dorking with
> the files while the app is still working with them is the 'svchost.exe -k
> netsvcs' process. Index service is disabled and this occurs on a freshly
> installed and updated XP Prof machine -- no third party stuff installed
> (especially anti-virus which was my first suspicion).
>
> According to a MS KB article this particular invocation of svchost is
> running several services (
> http://support.microsoft.com/?kbid=314056 )...which one is messing with an
> app's private files? Is this expected behavior? Is it possible to shut it
> off?
>
> Simply retrying the operation (MoveFileEx, or DeleteFile) in a loop works,
> but how *lame* to have to sprinkle that kind of code all over where those
> functions are used.
>
> Any information would be greatly appreciated.
>
> Thanks!
>
> DJ
>
>


Isn't 'svchost.exe -k netsvcs' the Task Scheduler in WinXP?

--
Phil Robyn
Univ. of California, Berkeley

u n z i p m y a d d r e s s t o s e n d e - m a i l

 
Reply With Quote
 
D.J. Heap
Guest
Posts: n/a
 
      2nd Oct 2003
> Isn't 'svchost.exe -k netsvcs' the Task Scheduler in WinXP?
>
> --
> Phil Robyn



That is one -- on my machine there is a bunch in there, though, and it would
be nice to know which is so invasive and why:

c:\>tasklist /FI "PID eq 1328" /svc

Image Name PID Services
========================= ======
=============================================
SVCHOST.EXE 1328 AudioSrv, Browser, CryptSvc, Dhcp,
dmserver,
ERSvc, EventSystem, helpsvc, lanmanserver,
lanmanworkstation, Messenger, Netman, Nla,
RasMan, Schedule, seclogon, SENS,
ShellHWDetection, TapiSrv, TermService,
Themes, TrkWks, uploadmgr, w32time,
winmgmt,
WZCSVC

DJ


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
svchost.exe netsvcs is eating up all memory Jen Windows XP General 2 29th Jan 2007 06:49 PM
all svchost.exe -k netsvcs services will not start =?Utf-8?B?Q2hyaXM=?= Windows XP General 0 30th Aug 2006 03:42 AM
C:\WINDOWS\System32\svchost.exe -k netsvcs - automatic necessary? Louise Windows XP Performance 3 25th Jul 2005 02:17 AM
Windows Media Player and Svchost.exe -netsvcs =?Utf-8?B?c3M0MjQ1?= Windows XP Music 4 7th Jul 2005 09:03 PM
Worm virus in SVCHOST.EXE access denied to Nortons Sue Windows XP General 0 24th Feb 2004 11:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 PM.