Solved

User Profiles / Insuffiecient access to files

Posted on 2003-12-08
9
178 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
[X]
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
  • 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

Industry Leaders: 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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 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