473,399 Members | 3,401 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,399 software developers and data experts.

Folder Security

Hi all
how do I set folder security permission to full access.( for "Everyone"
or Specific user )
regards
dishan
Nov 15 '05 #1
3 2956
Dishan wrote:
Hi all
how do I set folder security permission to full access.( for "Everyone"
or Specific user )
regards
dishan

You can use the win32 API "SetFileSecurity" and the relative fucntions.

or

for pure managed code, using classes in "System.Management" namespace to
handle the WMI "ROOT.CIMV2.Win32.LogicalFileSecuritySetting" object to
set the security.
You need to understand the windows security concept, e.g. the
DACL,SecurityDescriptor,etc, in both methods.

--
Jacky Kwok
ja***@alumni.cuhk.edu.hk
ja***@compose.com.hk

Nov 15 '05 #2
Can u give me some sample code ??
thanks
Dishan

"Jacky Kwok" <ja***@hkcompose.com> wrote in message
news:#5*************@TK2MSFTNGP10.phx.gbl...
Dishan wrote:
Hi all
how do I set folder security permission to full access.( for "Everyone" or Specific user )
regards
dishan

You can use the win32 API "SetFileSecurity" and the relative fucntions.

or

for pure managed code, using classes in "System.Management" namespace to
handle the WMI "ROOT.CIMV2.Win32.LogicalFileSecuritySetting" object to
set the security.
You need to understand the windows security concept, e.g. the
DACL,SecurityDescriptor,etc, in both methods.

--
Jacky Kwok
ja***@alumni.cuhk.edu.hk
ja***@compose.com.hk

Nov 15 '05 #3
Dishan wrote:
Can u give me some sample code ??
thanks
Dishan

You can find examples in "http://www.gotdotnet.com/community/usersamples/".

One I can find is
"http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=e6098575-dda0-48b8-9abf-e0705af065d9".

--
Jacky Kwok
ja***@alumni.cuhk.edu.hk
ja***@compose.com.hk

Nov 15 '05 #4

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

Similar topics

10
by: Nancy Drew | last post by:
hi all i want to build a trouble ticket system. i'd like to have a component written in vbscript watch a specific mail folder for income email (something like 'troubletickets@acme.com') the...
3
by: scott | last post by:
I'm creating a tree menu that uses FSO to read folders, subfolders and files. I'd like for each folder to have capabilty of being either Level 1,2,3,4 or 5 security. The 5 Levels are my security...
7
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store...
2
by: Jon L. Lovesky | last post by:
Hello all, I am attempting to access a remote folder from an asp.net application (all within the same domain). The application is configured for windows authentication in IIS and the asp.net...
5
by: Nikhil Patel | last post by:
Hi all, My Asp.Net application gives System.UnauthorizedAccessViolation exception when It tries to write a word document to a special folder I created for storing word documents. It says ASPNET...
2
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified...
5
by: Mitchell S. Honnert | last post by:
Is there a way, given the full path of a folder on a network, that one can programatically tell if you have Read access to that folder? I have an application where the user is able to select a...
6
by: Fred W. | last post by:
When my application starts I need to check folder permissions to ensure they have "Full Control" before I let them proceed on. How can I check this permission. Thank you, Fred
8
by: paquer | last post by:
Database Users need to have Read/Write etc... permissions to the folder where the Database resides in order to create the lock file. I have read only users. I have set up the Shortcut that links...
1
by: gnewsgroup | last post by:
OK, I know this sounds stupid, but I have been playing with this for hours, and could not get a clue. In my asp.net 2.0 web application, I generate charts on the fly. I would like to save the...
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...
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
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.