Solved

Write To A File in System Folder.

Posted on 2001-06-08
3
182 Views
Last Modified: 2010-04-11
I have developed an application which writes data to a text file in the system folder.
However, if the logged on user does not have administrator rights, the application is not able to write to the text file.
I want to know how my application can write to that text file or how I can give "Everyone" the rights to access my file.
0
Comment
Question by:anupjishnu
  • 2
3 Comments
 
LVL 24

Expert Comment

by:SunBow
ID: 6169679
How about: don't?
First, place file elsewhere. Consider public area.
You can always copy or merge them to a more secreted area later.
Another consideration - think transactions. If short message or text file. Perhaps manage with a batch file or three.
The 'AT' command can schedule a batch file to run, that can copy your logs. Or text files created by general users. It runs at higher privelege with no one logged on.

If user is making a big text file that has content known to user, in common language (not computer-eze), and user wants to share, well,,, put up a share to help them do that.
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6169694
Divide & Conquer: Split application in two - one) for user to generate shared text, two) for application to move to secured area and massage it as needed
0
 
LVL 12

Accepted Solution

by:
Housenet earned 50 total points
ID: 6179616
-Change permissions on the system folder to everyone full control & do not replace permissions on sub-folders.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
Most MSPs worth their salt are already offering cybersecurity to their customers. But cybersecurity as a service is wide encompassing and can mean many things.  So where are MSPs falling in this spectrum?
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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