עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C# קבוצות אבטחה

Featured Replies

פורסם

אפשר הסבר למה קוד מספר פשוט לא עובד? אני משתגע! עשיתי פשוט קופי פסט וזה פשוט קורס כל הרצה!

הבעיה: אני לא מצליח להוסיף קבוצה חדשה עם הרשעות משלה לתוך DACL

עכשיו ברור לי שבמחשב שלי אין דבר כזה קבוצה של developers ו sales

האם זה הבעיה? אם כן אז איך אני מוסיף קבוצות חדשות למחשב שלי?----->> תענו לי על זה בבקשה! תודהר רבה!


using System;
using System.IO;
using System.Security.AccessControl;
using System.Security.Principal;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web.Security;
namespace ddd
{
public class SampleMembershipProvider123
{
private static void Main()
{
WriteAcl(@"D:\123.txt");
Console.ReadKey();
}
private static void WriteAcl(string filename)
{
var salesIdentity = new NTAccount("Sales");
var developersIdentity = new NTAccount("Developers");
var everyOneIdentity = new NTAccount("Everyone");
var salesAce = new FileSystemAccessRule(salesIdentity, FileSystemRights.Write,AccessControlType.Deny);
var everyoneAce = new FileSystemAccessRule(everyOneIdentity,FileSystemRights.Read,AccessControlType.Allow);
var developersAce = new FileSystemAccessRule(developersIdentity,FileSystemRights.FullControl,AccessControlType.Allow);
var securityDescriptor = new FileSecurity();
securityDescriptor.SetAccessRule(everyoneAce);
securityDescriptor.SetAccessRule(developersAce);//NOT WORKING
securityDescriptor.SetAccessRule(salesAce);//NOT WORKING
File.SetAccessControl(filename, securityDescriptor);//DOESNT GET HERE NEVER
}
}
}


פורסם

היי

אני לא אף פעם לא השתמשתי המחלקות האלה וגם לא רשמת איזה exception מפיל את התוכנית, אצלי זה היה:

identitynotmappedexception some or all identity references could not be translated

אני מניח שגם אצלך זה אותו סיפור, וזה עולה כי פשוט לא קיימות הקבוצות sales ו- developers

לא רשמת איזה מערכת הפעלה יש לך אני אניח שזה windows 7, הנה קישור להוספת קבוצת משתמשים

http://windows.microsoft.com/en-US/windows-vista/Create-a-user-account

ברגע שהוספתי את הקבוצות שחסרות זה עבד פיקס

בהצלחה

פורסם
  • מחבר

איזה מלך! תודה רבה וקלעת בול לבעיה! שוב תודה!

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.