Questions tagged [folder-security]

8 questions
4
votes
5 answers

How do I get the security details for a long path?

I am doing a file server migration and I'm writing a small C# app to help me map the user permissions so we can put them in user groups. I'm currently using Directory.GetAccessControl(path); However it fails when it get to this 263 char file…
Biff MaGriff
  • 8,102
  • 9
  • 61
  • 98
3
votes
2 answers

How to apply security on a folder using web.config file?

I have folder on which i want to apply security like the current user who is using the site, can access that folder but if he is not currently logged in then he cannot see the content of that folder or files of that folder. I know we can do it in…
Ram Singh
  • 6,664
  • 35
  • 100
  • 166
2
votes
2 answers

C#, how to prevent user from changing a folder permissions?

I have a folder that I want to protect its contents, I'm denying full control to it by this code: void changeFolderPermission(string folder, FileSystemRights rights, AccessControlType type) { DirectoryInfo myDirInfo = new DirectoryInfo(folder); …
vexe
  • 5,433
  • 12
  • 52
  • 81
1
vote
2 answers

Network Service user vanished on IIS7.5 on Windows7

I'm installing the ASP .net on Win7, and I need give permission to ASP .net to use the project folder. I have tried Network Service and didn't work; Win7 didn't find that user. I know that previously the user was ASPNET and later is Network Service,…
Click Ok
  • 8,700
  • 18
  • 70
  • 106
1
vote
3 answers

Setting directory security to allow user and deny all

I have winforms app, in which I need to access a secured directory. I'm using impersonation and create WindowsIdentity to access the folder. My problem is writing unit tests to test the directory security; I'd like to a write a code that creates a…
Rita
  • 1,448
  • 1
  • 14
  • 22
1
vote
3 answers

How can I secure folder so user can not download media file form that folder

I am developeing a online video selling website in PHP. To download the specific video user pay perticular amount, then i provide a link to download video. I used following code to provide a download link to user. header('Content-Description: File…
Sumit P Makwana
  • 317
  • 5
  • 17
0
votes
0 answers

Removing Everyone from Shared Folder

I've a shared folder (that stores attached documents to requests) on a server that had access for the Everyone group. The Shared file is populated by users submitting a request with attachments added. I have to remove the everyone group from having…
paulmcm
  • 93
  • 4
  • 14
0
votes
0 answers

Restrict access to a folder using c#

There is a folder that gets created in public documents while installing the WPF app. It contains downloaded data while we run the app. I do not want the user to access that folder. If there is any way to restrict the user to access that folder? I…
user3722329
  • 5
  • 1
  • 4