• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Write To A File in System Folder.

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
anupjishnu
Asked:
anupjishnu
  • 2
1 Solution
 
SunBowCommented:
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
 
SunBowCommented:
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
 
HousenetCommented:
-Change permissions on the system folder to everyone full control & do not replace permissions on sub-folders.
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now