473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Setting NTFS permissions

Hi!

I'm trying to figure out how to add a user with full access to an NTFS
folder on a Windows 2003 Server using C# (web project). Does anyone have an
example of this? I want to keep existing permissions and just add one more
user to the list of allowed users.

Thanks in advance for your help.

Morten
Nov 16 '05 #1
1 2838
Hi Morten,

Here's a library for working with ACLs that may be helpful:

http://www.gotdotnet.com/Community/U...f-e0705af065d9

Joe
--
Joe Mayo, Author/Instructor
Need C#/.NET training?
visit www.mayosoftware.com
C# Tutorial - www.csharp-station.com

"Morten" <mo**************@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi!

I'm trying to figure out how to add a user with full access to an NTFS
folder on a Windows 2003 Server using C# (web project). Does anyone have an example of this? I want to keep existing permissions and just add one more
user to the list of allowed users.

Thanks in advance for your help.

Morten

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BingoHandJob | last post by:
Hello group! I'm having a problem and I hope some of you may be able to point me in the right direction. I inherited a web site using php, running on Windows 2000 & IIS. The site was...
2
by: Joey | last post by:
Hey, I need to change a Share's "Share Permissions" using .NET, and without using WMI, is it possible? Thanks ahead! --Joey
2
by: Phil Hey | last post by:
I am trying to set permissions on a folder programmatically, and have success fully used the code below for knowledge base article 266461 : How To: Programmatically Set NTFS File System Folder...
3
by: Ray Cassick \(Home\) | last post by:
I am starting to think there is some kind of conspiracy :) but everywhere I try to locate some (working) code showing how to change NTFS partitions on a network share I end up at a dead end. I...
0
by: Johan Lieshout | last post by:
How do i set NTFS Permissions. I can set them on a file on a Folder but the inherit function isn't turnt on -- Kind Regards Johan Lieshout
4
by: DavidMGorman | last post by:
Apologies if this has been asked & answered (pls post a link if this is so) but I am tired of finding a close but not quite close enough solution. I am looking for a sample or explanation of how to...
0
by: Mean | last post by:
Hello, I'm just writing a script that creates Groups in the AD. This groups are named by a special name convention (for our firm). I also set the "Scope of Group". Everything works very nice. ...
0
by: David Rees | last post by:
Hi I've got a series of NTFS Directories which have permission inheritance unchecked (in Explorer) with a bunch of permissions explicitly stated, and I need to remove these explicit permissions...
0
by: Burns168 | last post by:
Hi all, I have an app that needs to set the NTFS Permissions on registry keys that the app creates and uses. I have searched the web and found a few examples but none seem to work. I have found...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.