Access denied - to which file ??

  • Thread starter Thread starter Rod Janson
  • Start date Start date
R

Rod Janson

Hi,

When running a local application as a 'normal' user we get a 'System error
Code 5 - No Access' error. When we run the same app as administrator there
is no error.

How can we track down the offending file so we can change its attributes to
enable 'normal' users to run this application?

Thanks a bunch on tips on how to do this

regards

Rod
 
Bob I said:
Most applications have a filename, I'd start there.

I have checked and given rights to all files in the application folder,
sorry that I forgot to mention that. The offender must be an external flie
somewhere.

Any other tips how to track down the problem?

Rod
 
You could look to see what files get opened by the app when you fire it
off as Administrator, or you could ask the application vendor what is
required to run the program as user. Or another possibility is
installing the program as that user.
 
Hi,

Bob I said:
You could look to see what files get opened by the app when you fire it
off as Administrator,

How do I do that?
or you could ask the application vendor what is
required to run the program as user.

I have done that and they didn't klnow about other files than those in the
app folder. Obviously there is some system file or something which causes
this error. I just need a way to find out which filename...
Or another possibility is
installing the program as that user.

Only admins are allowed to install software on that computer.

Any other clues?

regards

Rod
 
How about change user to admin, install, run program once to set
"variables", change user back to user. And see what works there.
 
Bob I said:
How about change user to admin, install, run program once to set
"variables", change user back to user. And see what works there.

Hi Bob,

Sorry but I don't understand what you mean by 'setting variables'. The
error occurs when starting a print job from the app. Maybe the app's print
procedures uses some dll or something. I just need a general way to know
the underlying reason for this System Error #5, No Access error dialog.

Can I set some logging level to 'high' and find the offending filename there
or what?

Rod
 
"setting variables" as in registry entries needed fot the program to
work properly. As to the print function the system event viewer may have
something logged on that. Does the user have full access to the printer
in question?
 
Bob I said:
"setting variables" as in registry entries needed fot the program to
work properly.

The app has been reinstalled as admin and tested ok as admin but fails when
prin ting when 'user' is logged in.
As to the print function the system event viewer may have
something logged on that.

I have checked that but unfortunately there is nothing about this error.
Does the user have full access to the printer
in question?

Yes, it works from other apps with this user . It's a local printer.

regards

Rod
 
John Wunderlich said:
Use a program like the freeware "FileMon" from Sysinternals.
<http://www.sysinternals.com/Utilities/Filemon.html>

That was the first thing I tried. However I found it difficult to figure
out exactly which files was opened by this app and not by others. There was
hundreds of entries (regsvr etc..) just for the seconds I captured.

How can I filter out activity originating from this very app with
filemon...?

regards

Rod
 
That was the first thing I tried. However I found it difficult to
figure out exactly which files was opened by this app and not by
others. There was hundreds of entries (regsvr etc..) just for the
seconds I captured.

How can I filter out activity originating from this very app with
filemon...?

Under Options -> Filter/Highlight , change the "*" in the Include
box to the name of the program which you are trying to debug. It
should then capture only file accesses from that program.

HTH,
John
 
Sorry, baffled too.

Rod said:
The app has been reinstalled as admin and tested ok as admin but fails when
prin ting when 'user' is logged in.




I have checked that but unfortunately there is nothing about this error.




Yes, it works from other apps with this user . It's a local printer.

regards

Rod
 
Back
Top