Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

User Profiles / Insuffiecient access to files

Posted on 2003-12-08
9
175 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

860 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