Can I create a read-only directory in Windows XP?

According to http://support.microsoft.com/kb/326549 the read-only attribute is usually used for reasons other than marking a folder as actually read-only. Therefore, it seems to me that it is not possible to make a read-only directory in the same sense as linux using chmod aw.

+3
source share
2 answers

Interestingly, I did not know this! I just tried it, you can set the readonly attribute to a folder using the command attrib, but this has no effect.

The only alternative that I see is to set the access rights to the directory based on the user account, if it is located on a disk with the NTFS file system. Check out Microsoft's Xcacls tool .

Take care, however, that NTFS access permissions are much more complex than unix type access control. In general, it is better not to allow a certain type of access than to deny it. I think that this is no longer a problem today, but I remember how good old NT 4 was, my friend was able to refuse access to the folder, including the administrator account. After that, he could not do anything, not even delete ...

+2
source

Source: https://habr.com/ru/post/1711429/


All Articles