473,386 Members | 1,764 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,386 software developers and data experts.

setting a file's group access permissions

Having trouble finding information on this... I need to be able to grant and
revoke read/write permission to files for specific user groups on the
network. Never really looked at this before so I have no idea how to even
get an enumeration of users or groups from a DC.

Paul
Nov 21 '05 #1
2 1059
Hello Paul,

To enumerate or get details on users and groups from a DC, you use
System.DirectoryServices namespace types. There are numorous
samples/examples a Google search can get for you.

For access control list (ACL) related operations, there is no inbuilt way in
..NET 1.1 (but check out
http://www.gotdotnet.com/Community/U...-e0705af065d9).
..NET 2.0 however has support for ACL.

Hope this helps?

"Paul" <no***@executespammers.org> wrote in message
news:ud*************@TK2MSFTNGP15.phx.gbl...
Having trouble finding information on this... I need to be able to grant and
revoke read/write permission to files for specific user groups on the
network. Never really looked at this before so I have no idea how to even
get an enumeration of users or groups from a DC.

Paul

Nov 21 '05 #2
Hmmm. I'm a little surprised that isn't built in.

I see with the project you suggest that it's possible to get users and
groups from the DC, but it doesn't look like it provides a way to associate
these with file access and permissions.

Maybe I'll have to wait for Whidbey then.

Thanks,
Paul

"Siva M" <sh******@online.excite.com> wrote in message
news:Oy**************@tk2msftngp13.phx.gbl...
Hello Paul,

To enumerate or get details on users and groups from a DC, you use
System.DirectoryServices namespace types. There are numorous
samples/examples a Google search can get for you.

For access control list (ACL) related operations, there is no inbuilt way in .NET 1.1 (but check out
http://www.gotdotnet.com/Community/U...-e0705af065d9). .NET 2.0 however has support for ACL.

Hope this helps?

"Paul" <no***@executespammers.org> wrote in message
news:ud*************@TK2MSFTNGP15.phx.gbl...
Having trouble finding information on this... I need to be able to grant and revoke read/write permission to files for specific user groups on the
network. Never really looked at this before so I have no idea how to even
get an enumeration of users or groups from a DC.

Paul

Nov 21 '05 #3

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

Similar topics

7
by: barney | last post by:
I'm trying to write to an existing file under windows XP (home). The files are in 'My Music' which I think may be treated in some special way under XP. The relevant python code is as follows: ...
0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
13
by: Leo | last post by:
Hi I had asekd previously a question qith regards to running a DLL file from ASP. It was not running for me. Bo error returned, nothing, Just an empty string (when it should have not been...
1
by: raydelex | last post by:
I am new to securing a database with logins. My questions is: I want only one database to use a new Workgroup file that I have created, not all the Access databases that I bring up under my...
1
by: Kristen | last post by:
Hi, I'm not sure if this can be done or not but here goes... I write an application that uses Access and an MDW file to control who can open the database. Right now I have a bunch of different...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
30
by: Adam Baker | last post by:
Hello, I'm writing a site where a handful of people will be able to edit the content using PHP scripts (FCKeditor). The content is stored as individual files in a directory. I'd like to validate...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
13
by: eclipsme | last post by:
I thought I had this licked, but apparently not. I have a file upload script that attempts to upload a file to a directory in the public_html directory - www.domain.com/upload The permissions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.