file permissions

file permissions

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
file permissions clc 10-10-2005
|--> Re: file permissions Joseph Bittman ...10-10-2005
Posted by =?Utf-8?B?Y2xj?= on October 10, 2005, 12:30 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Is there a way to set permissions for a certain file type and not any
specific file. I need to allow some people access to look at some files, but
I want to deny them the ability to rename or delete these files. While they
may need to be able to modify other files in the same directories.





Posted by Joseph Bittman MCSD on October 10, 2005, 3:47 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
October 10, 2005

I don't know of a tool which does that, although it would be very easy to
develop one. The command line tool Xcal or cal (or something along those
lines), allows you to change NTFS permissions... which you can call with
parameters in code. :) The System.Diagnostics.Process class contains all you
need to call this command line tool with the parameters. All you need to do
is create a loop which goes through the files in the folder and run the
command with ones which match an expression. :) Hope this helps!

--
Joseph Bittman
Microsoft Certified Solution Developer

Web Site: http://71.39.42.23/
Static IP




> Is there a way to set permissions for a certain file type and not any
> specific file. I need to allow some people access to look at some files,
> but
> I want to deny them the ability to rename or delete these files. While
> they
> may need to be able to modify other files in the same directories.
>
>
>
>



Posted by Steven L Umbach on October 10, 2005, 5:32 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
You could use the GUI and move those files into their own folder where you
could configure permissions and you have the option in the advanced page of
the security page to uncheck "inherit permissions form parent if need be".
It may help to sort the folder by extensions to speed up the move operation.
Otherwise command line tools like cacls which is built in or xcacls,
fileacl, etc can use wildcards to change file permissions based on file
extension. Say I want to give users read/execute permissions to all the .txt
files in folder named docs1 and they already have modify permissions and I
do not want to disturb existing permissions for other users/groups I could
use the command while in that folder C:\docs1>CACLS *.txt /E /P "users":r
. Note that an "owner" of a file can always change permissions to a file if
they want to and know how. If you try a command line tool be sure to test it
out on a test computer or folder first and do a backup of your current
computer as these are very powerful utilities and one wrong switch or path
can muck up permissions big time. --- Steve

http://www.ss64.com/nt/cacls.html --- cacls syntax
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/TechRef/8ec308b8-9229-44bb-acad-707ec1b7f0a9.mspx

--- xcacls which has more options.

> Is there a way to set permissions for a certain file type and not any
> specific file. I need to allow some people access to look at some files,
> but
> I want to deny them the ability to rename or delete these files. While
> they
> may need to be able to modify other files in the same directories.
>
>
>
>



Similar ThreadsPosted
File sharing permissions August 16, 2005, 3:36 am
Restore file permissions October 27, 2005, 2:09 pm
File Permissions are not inheriting June 15, 2005, 10:29 am
Folder/File Permissions April 21, 2006, 10:05 am
File permissions screwed up May 16, 2006, 9:41 am
File/Folder permissions July 15, 2008, 7:36 am
File and Folder Permissions October 22, 2008, 5:57 pm
Restore file permissions using xcacls.exe October 25, 2005, 8:15 am
Help with file permissions and ICACLS.EXE problem August 3, 2007, 12:00 am
File Permissions on Windows 2003 Server April 25, 2006, 7:02 pm

The site map in XML format XML site map

Contact Us | Privacy Policy