Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / July 2004

Tip: Looking for answers? Try searching our database.

Setting files/folders permission

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Samuel Shum - 07 Jul 2004 12:38 GMT
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
Gert Pfeifer - 07 Jul 2004 14:25 GMT
Try the classes System.IO.FileInfo or System.IO.DirectoryInfo to read or set
attributes to files or dirs. They are using FileAttributes-Enumeration.

> 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
Samuel Shum - 08 Jul 2004 10:52 GMT
Thanks for the information, but it seems that the classes are not for
folder/file security permission. Say "UserA" under "CertainGroup" has full
access for directory "DirectoryA" whereas other members inside this group
have "read" access only and so on.

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

Samuel

> Try the classes System.IO.FileInfo or System.IO.DirectoryInfo to read or set
> attributes to files or dirs. They are using FileAttributes-Enumeration.
[quoted text clipped - 5 lines]
> >
> > Samuel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.