Admin Admin
Number of posts : 21 Age : 36 Localisation : bbsr,ORISSA,INDIA Registration date : 2007-05-13
| Subject: How to make a file or folder private Fri Oct 19, 2007 12:07 am | |
| Checking Permissions
If users have difficulty accessing a file, the easiest way to identify the problem is to view the file's
properties in Windows Explorer. Select the Security tab and view the settings for each entry. If the
Security tab doesn't appear on Windows XP Professional, you can temporarily disable Simple File
Sharing to make it appear. Click Tools, Folder Options, View and uncheck Simple File Sharing at the
bottom of the Advanced Settings list.
If you don't want to do this or if you have Windows XP Home Edition, log on as a Computer
Administrator, open a Command Prompt window, change to the directory containing the file in question,
and then type cacls filename. The listing should show you whether the user has access to the file.
Granting Permissions to Everyone
If a file has been moved to a public, shared folder but isn't accessible by other users, you can fix the
problem with cacls. Log on as a Computer Administrator or as the owner of the file, open a Command
Prompt window, change to the folder containing the file, and type the command
cacls filename /E /G everyone:RWC
where filename is the name of the file you'd like to make available. You can use wildcards (for
example, *.*) to fix multiple files with one command. You can also name specific users. For example,
cacls filename /E /G norm:RWC bob:RWC
grants permissions to the user accounts Norm and Bob, without making the file available to Everyone.
(However, if Simple File Sharing is enabled, Norm and Bob won't be able to access the file over the network. You have to grant access to Everyone for network users to be able to use a file when Simple File Sharing is in effect.)
Making a File or Folder Private
To make a file private, it's best to remove specific users and groups using the /R command. For
example, to remove access by Everyone, use the following command:
cacls filename /E /R everyone
To modify a folder and all the folder's contents, you can modify the folder's properties and then use the
recursive option to modify all files and subfolders, as in this example:
cd \foldername
cacls . /E /R everyone
calcs *.* /T /E /R everyone
Caution
Be very careful when using cacls with folders. If you remove essential permissions
from a system folder such as \Windows, the operating system may stop working.
Another thing is that it works for only NTFS format drive. | |
|