Questions tagged [file-security]

66 questions
2
votes
1 answer

Secure file storage in iOS

I am developing an application which would include the download of a few files from the server the app talks to. So I am planning to store the downloaded files(Quiet sensitive) in aLibrary directory. Preferably I would create a subdirectory (marked…
divya
  • 177
  • 2
  • 14
2
votes
2 answers

Restrict file access in Tomcat

There is a serious security issue in our product which runs on apache tomcat server listening on ports 80 and 443. The routing of incoming HTTP/HTTPS packets on these ports is configured by our product classes, which fails to ensure that each…
user496934
  • 3,822
  • 10
  • 45
  • 64
1
vote
1 answer

FileSecurity not being set

For a seperate project my code reads in a file, destroys the old one and builds the new one etc. However i need to get the FileSecurity AccessControl from the old file and apply it to the new one. I'm fairly new to C# so i haven't worked with…
IainS
  • 260
  • 3
  • 14
1
vote
0 answers

Object to object ACL with xattr in Security Namespace

I want to create an access rule in Linux so that only files with a certain eXtended attribute can be moved, copied or created in a certain directory regardless of my priviledges in that directory. The xattr should be created in system or security…
1
vote
1 answer

How secure storage apps woks

I want to make a mobile application using Flutter like this https://play.google.com/store/apps/details?id=com.enchantedcloud.photovault but I don't know how to keep the data actually safe I have used aes_crpyt package (…
1
vote
0 answers

Powershell - Is it possible to load multiple FileSecurity objects from a single file?

I am using Windows 10 and Powershell. I am moving a large directory of files onto a new server. The files will be easily copied over however the permissions will not be copied over. I have been working on creating a series of scripts to save all of…
1
vote
2 answers

Create file with read-only mode in C

I am saving some data into .txt file like this: void save_file() { char *file_name = "my_file.txt"; FILE *f = fopen(file_name, "w"); if (f == NULL) return; // some fprintf instructions fclose(f); } Everything works…
weno
  • 804
  • 8
  • 17
1
vote
0 answers

Visual Studio Deployment Package Change File Security

I have a Deployment Package created in Visual Studio that includes an Access (MDB) file that gets deployed to C:\ProgramData\AppName folder. When I try to use the installed application, I observe that it can read from the MDB but cannot write to…
DjD
  • 191
  • 2
  • 2
  • 7
1
vote
1 answer

Unable to set write permission on file

I want to create a file and give a user write permission. IO.File.Create(Path & "\test.json") Dim fs As Security.AccessControl.FileSecurity = IO.File.GetAccessControl(Path & "\test.json") Dim far As Security.AccessControl.FileSystemAccessRule = New…
Tyler Montney
  • 1,402
  • 1
  • 17
  • 25
1
vote
1 answer

Stop files access through domain name

Through domain name my files are accessible, I have the similar URL (below given) which makes my files accessible. URL: https://www.DomainName/ParentFolder/SubFolder/File.doc I have checked the permission on ParentFolder,SubFolders, only few person…
Moed Ijaz
  • 13
  • 2
1
vote
1 answer

Apache custom module, where to put its own log file?

I have a Apache module that acts as a security filter that allows requests to pass or not. This is a custom made module, I don't want to use any existent module. I have actually two questions: The module has its own log file. I'm thinking that the…
cezane
  • 23
  • 3
1
vote
1 answer

ERROR_ACCESS_DENIED setting file owner

I am trying to set the owner of a file to another user programmatically in C++. I have definitely enabled the SeRestorePrivilege for my process. I can confirm this using Process Explorer. I start the process, it is disabled, I run my code to enable…
niemiro
  • 1,778
  • 1
  • 20
  • 37
1
vote
1 answer

How to make custom file format in Java

I am making a application in Android. I have lot of file on Server like abc.doc, abc.xls, abc.mp3 etc. I want to download all these file in a single file like .zip, .rar then store it on SDCARD. Than only my application able to read these file no…
DynamicMind
  • 4,240
  • 1
  • 26
  • 43
1
vote
2 answers

Setting ACE slow for folder with many files

we have created an application which provides the ability to set a recursive "Deny" on a windows folder for a certain Active Directory group. Basically the same as going into the properties dialog in windows explorer and clicking on security and the…
hoetz
  • 2,368
  • 4
  • 26
  • 58
0
votes
1 answer

Web-hosted file authorization

Im using a PHP based login authentication mechanism to allow/restrict access to some parts of my website (folder module1, module2, etc), but i have a problem with restricting access to files. I used the documents folder (check below) to host some…
Boris
  • 719
  • 7
  • 21