Solved

protect a file from opening

Posted on 2012-03-24
10
302 Views
Last Modified: 2012-08-13
I've the following situation:

There are one or more files ascii plain/text in a folder and I need that no one can open and view the contents or copy the file except that it can be loaded by a single application of a third party supplier that I can not change. Is this possible?
0
Comment
Question by:leorocha
10 Comments
 
LVL 15

Accepted Solution

by:
dave4dl earned 500 total points
Comment Utility
yes, you must set up the application to be run by a specific user and then give only that user "read" rights on that file
0
 
LVL 59

Expert Comment

by:LeeTutor
Comment Utility
This tutorial should tell you all you need to know about how to Take Ownership and change the Permissions of files and folders:

http://www.7tutorials.com/take-ownership-and-change-permissions-files-and-folders
0
 
LVL 50

Expert Comment

by:jcimarron
Comment Utility
leorocha--A fairly lame approach would be to hide the folder in an unlikely spot and then change its name.  You could also change the names of the files.  This would not prevent others from opening the folder or the files, but they would have to search pretty hard to find the folder.  The folder also would not be readily apparent and therefore attract curiosity  and attempts to open.
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
Comment Utility
rename the extension of file to .exe, that will make users to get confused and even if any one tries to open it up, a pop will open up, how do you want to open the file etc., etc.,
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
security via obscurity is not a good approach. Using NTFS file permissions as noted above is the best approach.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 14

Expert Comment

by:shahzoor
Comment Utility
i will go with wasimibm
Add all files to a folder
Use Winrar to compress the folder and set password to the rar file
then change the extension of rar to something else or remove the extension
files will be secure :)
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
Comment Utility
Well :) .. I am glad that i could be of help.. also please remember to close this question...!!!!
0
 

Author Comment

by:leorocha
Comment Utility
None of the above is usefull for this situation. I expected an answer such as "inhibit the execution of NOTEPAD.EXE or any other application that can display the contents of a file, copy, rename or delete it. Or set XP to run your application only and disable all the keys or commands that provide access to the DOS screen.

In short, I need to run windows start my application only and disable all the buttons, keys and commands that enable start or close other software that is being used, access the DOS screen, windows explorer, notepad, etc.. Appreciate the assistance of someone who has had experience in similar situations.
0
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
Comment Utility
then what is the need of this file, store in a secure location where no one can access...!!!

or create a different user on the same machine and place the file in his home folder.. so that only the user or an administrator can have the access to such a file...
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
In short, I need to run windows start my application only and disable all the buttons, keys and commands that enable start or close other software that is being used, access the DOS screen, windows explorer, notepad, etc.. Appreciate the assistance of someone who has had experience in similar situations.

Why didn't you say so in the first place.  In other words, you want this computer to run in a kiosk mode in which only 1 program can run

Which is entirely different from preventing other applications opening a data file.

through local policy or group policy lock down the machine and in the registry change the shell from explorer.exe to your application.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

When you use the right mouse button (assuming you're right handed) to click something in Windows, you usually get what is called a "context menu".  It's called that because the items in the menu vary according to context, that is, according to where…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now