473,802 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting files/folders permission

Hello, I'm just wondering if there are any .Net objects that I can use in
the framework that set folders/files permission, assign quotas to users.

Any suggestions/comments are welcome. Thanks in advance.

Samuel
Nov 18 '05 #1
2 1350
Try the classes System.IO.FileI nfo or System.IO.Direc toryInfo to read or set
attributes to files or dirs. They are using FileAttributes-Enumeration.

"Samuel Shum" <sa********@hot mail.com> schrieb im Newsbeitrag
news:uq******** ******@TK2MSFTN GP11.phx.gbl...
Hello, I'm just wondering if there are any .Net objects that I can use in
the framework that set folders/files permission, assign quotas to users.

Any suggestions/comments are welcome. Thanks in advance.

Samuel

Nov 18 '05 #2
Thanks for the information, but it seems that the classes are not for
folder/file security permission. Say "UserA" under "CertainGro up" has full
access for directory "DirectoryA " whereas other members inside this group
have "read" access only and so on.

The "FileIOPermissi on" class under "System.Securit y.Permissions" seems to be
close, but I still can't figure out how to solve the problem with it...

Samuel

"Gert Pfeifer" <an**@tu-dresden.de> wrote in message
news:e0******** ******@TK2MSFTN GP11.phx.gbl...
Try the classes System.IO.FileI nfo or System.IO.Direc toryInfo to read or set attributes to files or dirs. They are using FileAttributes-Enumeration.

"Samuel Shum" <sa********@hot mail.com> schrieb im Newsbeitrag
news:uq******** ******@TK2MSFTN GP11.phx.gbl...
Hello, I'm just wondering if there are any .Net objects that I can use in the framework that set folders/files permission, assign quotas to users.

Any suggestions/comments are welcome. Thanks in advance.

Samuel


Nov 18 '05 #3

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

Similar topics

0
2332
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 1&1 with only limited server configuration via a web based control panel. My query relates to the ASP security model and how it relates to FrontPage options for setting file access on a database file. If you know of any online documentation...
0
982
by: Samuel Shum | last post by:
Hello, I'm just wondering how I could set files and folders permission with VB.NET? I find there is a class "system.security.permissions" which seems to do the job but the samples are pretty complicated. Could anyone please show me some codes of how to achieve the following results? Folder: D:\Examples\UserA (Admin, System: Full Access, Members\UserA: Read & Write, Members\: Read) Thanks in advance.
1
2725
by: James | last post by:
I am still having permission problems, but it has changed from a blanked 'Access Denied' error to this. I have ensured ASPNET user has 'full control' of the Temporary ASP.NET Files folder. However, there are no folders within this folder, so to me it looks more like the files are missing rather than permission being denied... I have tried uninstalling the .NET framework, as well as uninstalling IIS.
8
1764
by: lightcap | last post by:
Server Windows 2003. Created one web site, everything works fine. Copied the content to another folder and created another web site pointing to the copied contecnt for test purposes. Configuration is identical except that the test site has a different IP and some path changes were made in web.config to match the different location. First site still working fine, but test site gets access denied trying to create folders under the Temporary...
10
2623
by: John Salerno | last post by:
I always read about how you need to set certain file permissions (for cgi files, for example), but it's never been clear to me *how* you do this. I know you can run the line chmod 755 scriptname.py but *where* do you run this? Is this done on your personal system, or on the server? What if you are using Windows? If it's done on the server, how do you do it?
8
2581
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if the folder does not exsist, create folder "www" and then copy folder "temp" and its contents. If the folder "www" is there, look in it, check to see if the files in folder "temp" are in there, if not, copy the files that are not from folder...
0
2130
by: =?Utf-8?B?TGlhbSBNYWM=?= | last post by:
Hi Folks, I have embeded WMI scripting within a Visual Basic application to create remote shares and set permissions, I'm now moving to vb.net environment and having trouble getting my scripting to work, I have search the net for vb.net code to create shared folders and set permsission but no joy, if anyone can help or recommend good web sites on this or is there anyway I can get my exisiting code to work in vb.net please see code below...
4
4676
by: Dariusz Tomoñ | last post by:
Hello, How can I manage files from ASP.NET C# 2.0? I mean I would like to save/erase files, find files in a folder and programatically check if the file with the specific name exists in a folder. I tried to google a bit but I could not manage to find any page with technical/practical approach to the problem. Thank you in advance for any help
5
2175
by: daokfella | last post by:
I have a custom web.config section similar to the following: <CustomAuthSettings attr1="" attr2=""> <Locations RedirectUrl="Invalid.aspx"> <add Path="test.aspx" Roles="1,2,3" Permissions="4,5,6" /> </Locations> </CustomAuthSettings> Everything seems to work just fine. When I have config files in nested folders, Attr1 and Attr2 of the CustomAuthSettings section correctly
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10305
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7598
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.