Questions tagged [file-security]
66 questions
18
votes
4 answers
File sharing not working as expected
I have a file sharing issue where my process is trying to read a log file whilst it is currently still open by NLog. In diagnosing the issue, I found something surprising. The following fails:
using (var fileStream1 = new FileStream("test.file",…

Kent Boogaart
- 175,602
- 35
- 392
- 393
8
votes
4 answers
take ownership of a file c#
I am trying to take ownership of a file and delete it via C#.
The file is iexplorer.exe, current owner by default - TrustedInstaller.
The method FileSecurity.SetOwner seems to set the specified ownership, but actually doesn't change the initial…

alternative
- 81
- 1
- 1
- 3
5
votes
1 answer
How can I securely link to files in a ColdFusion application without hosting them?
I am building an application in ColdFusion as part of my job. This application basically creates tickets for issues. On a shared network drive there are folders that correspond to the ticket numbers with files pertaining to that ticket.
However,…

lonnyjuce
- 83
- 1
- 4
3
votes
2 answers
set file permissions for c:\program files\company\app\file for all users
I've a custom installer program that has worked fine, but it asks the user for admin permission every time it updates an application. I'm creating a windows service that skips this part, but the windows service gives only System and Administrators…

Chuck Savage
- 11,775
- 6
- 49
- 69
3
votes
2 answers
How to remove "encrypt contents to secure data"
My website had problems loading an image, css file and a javascript file downloaded as a package from "Superfish".
I found the problem to be the "encrypt contents to secure data" on each of the files.
Ok, so I right-click -> properties -> Advanced…

ptutt
- 1,338
- 3
- 18
- 35
3
votes
1 answer
Set file owner to non-existing user/SID in windows
I'm trying to write a backup and recovery tool. I'm running my code on a WinPE CD (http://en.wikipedia.org/wiki/Windows_Preinstallation_Environment). I'm trying to read the entire C: partition and write it to the network. Just like the tar command,…

Daniel Knueven
- 222
- 1
- 11
3
votes
2 answers
Best Way to Protect Certain File Types in a Directory from Being Served
I have a directory, "d:/resources/xxxxx/file-name.xxx" that stores the file types: .png, .xml, .pdf, which are accessed by a website. A virtual directory is set up in IIS, "resources," which points to this hard drive location, to allow the .png…

StronglyTyped
- 2,134
- 5
- 28
- 48
2
votes
1 answer
How to get the SACL properties of a folder in a remote machine using c++
I am trying to read the SACL properties of a folder.
The application will run on the Domain Controller, and it needs to read and update the SACL properties of a folder or file that is present in a member computer.
Is there any APIs available for…

native Dev
- 56
- 4
2
votes
0 answers
Angular2 track file upload progress with Http api
How to use angular2 HTTP API for tracking upload progress?
I can do it with native javascript XHR method. But XHR method does not provide XSRF protection whereas HTTP API provides XSRF protection by setting XSRF_TOKEN cookie.
I need both XSRF…

LokiKartik
- 91
- 10
2
votes
1 answer
Change rights to a file to be readonly
How can I set a file to be readonly?
I'm using WPF with C#.

Palacean Gelu
- 41
- 4
2
votes
3 answers
Secure upload files in Laravel
I have a Laravel 5 project in which I am uploading files in database in Medium Blob format.
But uploading files in database takes some extra time to execute.
Uploading files in database is a secured way to keep files safe from crawlers or some…

sujit prasad
- 895
- 2
- 12
- 28
2
votes
1 answer
C# MemoryMappedFile - Different Processes for Read & Write
I have some problems with MemoryMappedFiles in C#.
They are working perfect when I am using only 1 process, but as soon as I try to access the mmf-file from different processes I get errors that this is permitted.
I have a data-logger, which writes…

thetemplar
- 97
- 2
- 3
- 9
2
votes
2 answers
Securing Files over Web: Fine Grained Authorization Based File Access
I have a system where employees can upload files. There are three ways
Upload to my account in public, private or protected mode
Upload to department account in public, private or protected mode
Upload to organization account in public, private or…

Nishant
- 54,584
- 13
- 112
- 127
2
votes
0 answers
PHP File hacked
Recently one of the files that did payment processing was modified by a hacker. He added a line of code to get a copy of the card info. Site is safe from XSS/SQL Injection attacks.
The file is under /var/www/html and the folder has 777…

mishka
- 677
- 6
- 20
2
votes
1 answer
Add security permissions to nested folders
I have a situation like this:
folder1(top folder, user1: full access, user2: full access, user3: full access, system:full)
folder2(nested in folder1, user1:full, user2:full, no inheritance)
folder3(nested in folder1, user3:full, no…

darthzejdr
- 314
- 1
- 3
- 12