且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我要删除MS Access文件时输入密码

更新时间:2023-11-29 14:47:40

访问密码仅用于保护数据库文件的内部".由于数据库只是一个文件,因此它无法保护自己免受操作系统操作的影响.

但是,您可以使用Windows安全性在文件(或目录)上设置适当的特权.例如,您可以授予读写权限,但拒绝(或不授予)删除权限.这不能保护文件的内容,因为具有写特权的人可以破坏文件的内容,但是根据您的情况,它可能是可用的.

如果您不授予或拒绝文件的删除权限,请记住还要检查用户在该目录中是否具有删除子文件夹和文件"特权.这是因为如果您具有该特权,它将覆盖缺少单个文件删除特权的问题.
The Access password is used only to protect the ''inside'' of the database file. Since the database is just a file, it cannot protect itself from operating system operations.

However, what you can do is to set proper privileges on the file (or directory) using windows security. For example you can grant read and write but deny (or not grant) delete. This doesn''t protect the contents of the file since a person with write privileges can destroy the contents but depending on your situation it may be usable.

If you don''t give or deny the delete permission on the file, remember also to check if the users have "delete subfolders and files" privilege in that directory. This is because if you have that privilege it overrides the lack of a single file deletion privilege.