Solved

User Profiles / Insuffiecient access to files

Posted on 2003-12-08
9
169 Views
Last Modified: 2010-04-05
Greetings

I have a process that runs in the backround that will act on a particular event on the system. When it does, it reads and potentially wirtes some info to a file in the program directory.

This poses a problem when a user logs into his / her workstation with an account that does not have the appropriate rights. I get access denied errors on the files I need to read / write....

What to do ?? Our customers would generally not like it to give their users admin rights on their PC's !

Any comments / suggestions or pointers would be greatly appreciated.

Kind Regards
 Engwi
0
Comment
Question by:Engwi
  • 3
  • 2
  • 2
9 Comments
 
LVL 5

Accepted Solution

by:
delphized earned 25 total points
Comment Utility
If your process runs as a service, you can set the login property in the services panel to a privileged user, so you can access all the files you want to.
0
 

Author Comment

by:Engwi
Comment Utility
delphized

Bummer....

The Process does not run as a service !

Any other suggestions ?

Regards
 Engwi


 

0
 
LVL 5

Expert Comment

by:delphized
Comment Utility
have a look at W32 help on delphi at the ImpersonateLoggedOnUser function.
I think you could change the privileges for your application in this way.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 8

Assisted Solution

by:gmayo
gmayo earned 25 total points
Comment Utility
Not use the Program Files directory? Set up some special folder with full read/write capabilities for all users?

Geoff M.
0
 

Author Comment

by:Engwi
Comment Utility
gmayo

The install package I created installs by default to Program Files. How do I, create a "special" folder with full read write capabilities for all users.

Thanks in advance.

 Engwi
0
 
LVL 8

Expert Comment

by:gmayo
Comment Utility
What install package are you using? Most decent ones will allow you to install to other directories. I didn't mean "special" as in different to a normal folder, just another folder outside of Program Files.

Geoff M.
0
 

Author Comment

by:Engwi
Comment Utility
Greetings

I resloved this by using some components that allows me to modify the ACL of the directory I install the software in.. Given that the person installing the software is logged in with admin rights.

Kind Regards
 Engwi
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now