Solved

User Profiles / Insuffiecient access to files

Posted on 2003-12-08
9
177 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
ID: 9896394
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
ID: 9896554
delphized

Bummer....

The Process does not run as a service !

Any other suggestions ?

Regards
 Engwi


 

0
 
LVL 5

Expert Comment

by:delphized
ID: 9896621
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Assisted Solution

by:gmayo
gmayo earned 25 total points
ID: 9899525
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
ID: 9902165
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
ID: 9902549
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
ID: 13032230
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

696 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