ntfs

How do I give apache permission to use a directory on an NTFS partition?

戏子无情 提交于 2019-12-10 18:09:49
问题 I am running Linux (Lubutu 12.10) on an older machine with a 20GB hard drive. I have a 1 TB external hard drive with an NTFS partition on it. On that partition, there is www directory that holds my web content. It is auto-mounted at startup as /media/t515/NTFS. I would like to change the apache document directory from /var/www to /media/t515/NTFS/www. I need to keep the partition as an NTFS partition, because I use the same hard drive on a different machine running WAMP. I changed the file

How to dump the NTFS $Bitmap file

南笙酒味 提交于 2019-12-10 18:06:34
问题 For a project, I want to get the list of all free/used clusters on an NTFS partition. For this i have to dump the $Bitmap file and parse its contents. There are few API's and examples on the web, but however they don't seem to work. Is there a simple way/ code sample to just copy the $Bitmap file somewhere. Is using FSCTL_GET_VOLUME_BITMAP the only way? Ideally I would like to do it in C#. 回答1: NFI.EXE which is (used to be) part of the "oem support tools" can enumerate all NTFS partition

dsofile c# API / NTFS custom file properties

有些话、适合烂在心里 提交于 2019-12-10 15:55:57
问题 I'm searching for a good way to add meta data to a file. dsofile.dll works fine for NTFS. The meta data is lost, when one drops a copy on a FAT32 share (it uses NTFS hidden streams I guess). Microsoft Word documents contain meta data that are not lost, how do they do it? Similiar to FAT, sending the file via E-Mail strips of all meta data created with dsofile (and also meta data created by hand with Windows Explorer). Separate meta data files are not an option. It must be compatible with

What reliability guarantees are provided by NTFS?

时间秒杀一切 提交于 2019-12-10 15:21:59
问题 I wonder what kind of reliability guarantees NTFS provides about the data stored on it? For example, suppose I'm opening a file, appending to the end, then closing it, and the power goes out at a random time during this operation. Could I find the file completely corrupted? I'm asking because I just had a system lock-up and found two of the files that were being appended to completely zeroed out. That is, of the right size, but made entirely of the zero byte. I thought this isn't supposed to

Mercurial remotes on the file system instead of http server

橙三吉。 提交于 2019-12-10 15:21:20
问题 I'm currently working on a migration from svn to mercurial. My needs are plain and simple, I need source control over an intranet in our company. I see examples everywhere for setupping remote repos over IIS. I just don't see the point when I can just make a share on a server. Can I still setup authorizations and authentications on repos using NTFS permissions? Am I missing something? Thank you 回答1: Putting a repository on a file share works, but it's not the way recommended by the Mercurial

Getting a file checksum directly from the filesystem instead of calculating it explicitly

依然范特西╮ 提交于 2019-12-10 14:55:41
问题 I'm guessing that a typical filesystem tends to keep some kind of checksum/CRC/hash of every file it manages, so it can detect file corruption. Is that guess correct? And if yes, is there a way to access it? I'm primarily interested in Windows and NTFS, but comments on other platforms would be welcome as well... Language is unimportant at this point, but I'd like to avoid assembler if possible. Thanks. 回答1: OK, it appears that what I'm asking is impossible. BTW, this was also discussed here:

How to synchronously and consistently delete a folder on NTFS with C#

折月煮酒 提交于 2019-12-10 13:45:31
问题 this: Directory.Delete(dir, true); is not synchronous. On the immediately proceeding line you can still manipulate/read the directory. For example, this: Directory.Delete(destinationDir, true); Directory.CreateDirectory(destinationDir); Thread.Sleep(1000); results in the folder not existing. The delete runs async, CreateDirectory doesn't create because it already exists, then delete actually fires and removes the directory. Is there an IO API that will give me consistency? Answer involving

Mercurial and NTFS Alternate data stream

戏子无情 提交于 2019-12-10 13:08:05
问题 How does Mercurial handle Alternate Data Streams (in the NTFS file system)? If it can't handle that, is there a DCVS that does? EDIT: When I change version with update , what happens to the ADS ? Is it lost (erased)? Is it versioned too? Is it alltogether ignored? 回答1: Mercurial does not store alternate data stream. Additionally, they are likely to be overwritten on update. I don't think any of the open source VCS I know handle that kind of thing (even permissions are usually not handled). 来源

Reading MFT in NTFS

随声附和 提交于 2019-12-10 10:22:45
问题 While wandering the web looking for explanations of how to read/write MFT I found the folowing section:(http://www.installsetupconfig.com/win32programming/1996%20AppE_apnilife.pdf) If NtfsProtectSystemFiles is set to FALSE, then the special files can be opened. There are, however, some drawbacks associated with attempting to do this: Because many of the special files are opened in a special way when mounting the volume, they are not prepared to handle the IRP_MJ_READ requests resulting from a

2019-2020-1学期 20192419 《网络空间安全专业导论》第十周学习总结 (读书笔记)

房东的猫 提交于 2019-12-09 22:13:40
第四章 系统安全 4.1 操作系统概述 计算机是由硬件、操作系统软件、应用软件共同构成的复杂系统。 操作系统是一组管理与控制计算机软、硬件资源,为用户提供便捷计算服务的计算机程序的集合。 计算机操作系统的功能主要包括: 1)进程管理:也称处理器管理,主要对CPU的时间进行分配、对处理器的运行进行有效的管理。 2)内存管理 3)设备管理 4)文件管理 5)用户接口:用户接口主要分为命令行接口、图形界面接口和程序调用接口几种类型。 4.2 操作系统安全 4.2.1 操作系统的安全威胁与脆弱性 操作系统的安全威胁 威胁计算机操作系统安全的因素有很多,主要有以下几个方面: (1)非法用户或假冒用户入侵系统 (2)数据被非法破坏或者数据丢失 (3)不明病毒的破坏和黑客入侵 (4)操作系统运行不正常 操作系统的脆弱性 操作系统的脆弱性主要来自以下几方面: (1)操作系统的远程调用和系统漏洞 (2)进程管理体系存在问题 操作系统的常见漏洞包括: 1)空口令或弱口令 2)默认共享密钥 3)系统组件漏洞 4)应用程序漏洞 4.2.2 操作系统中常见的安全保护机制 安全保护机制有如下几种: 进程隔离和内存保护 运行模式:现代CPU的运行模式通常分为内核模式与用户模式两种运行模式:1) 内核模式:也称为特权模式。 2)用户模式:也称为非特权模式。 用户权限控制 文件系统访问控制