Password protect modify rights

Nashemon

Senior member
Jun 14, 2012
889
86
91
Sorry, not sure if I should post this here or in Security, but I'm looking for a program that isn't too obstructive that will allow me to read folder contents normally, but if I want to modify a file inside said folder, it prompts for a password.

Just an idea I had thought due to the recent string of ransomware attacks. If a bot gets in and starts encrypting files, I've been told read-only files won't be affected. My initial thought was a read-only setting can easily be changed through command line without much confirmation from the user.

However, rather than unchecking the box each time I want to modify, I was thinking a password protection would be more secure and easier to use. But I don't want to enter a password for access, just for modify.

Another application for such a request is to allow others to access documents, but not accidently delete or move files from it. For example, I have a folder full of movies, that I frequently copy to and copy from. I want everyone in my house to have access to this folder to view the movies, but don't want them delete any, or rename them. When I transfer a new movie to the folder, I get a password box, enter the password, and it transfers. No fiddling with read-only properties.

Seems like a feature that should be built into Windows, but I can't find anything. Anyone know of a lightweight software that does this? If not, anyway to password authenticate the read-only switch? That way I could make a batch file that will let me toggle it. Or if this is built into Windows, even if complicated, like through admin accounts and shared folders, please point me the way.
 

Elixer

Lifer
May 7, 2002
10,371
762
126
Well, not the way you want, at least, on windows.
You are basically wanting write protection on folder or file, and to get a password authentication on such at attempt.
The best you could do on windows is to create a network share or folder with a new account that has admin access, and then for you to use a limited user account to read stuff from there, and set write permission only for certain accounts.

Yeah, this isn't the best solution, but, it can work though it is a PITA to do it this way.

The other way to handle this is, not to use windows, but to use a linux file server, that has more permission options.
 

Elixer

Lifer
May 7, 2002
10,371
762
126
You know, you could also run a VM copy of windows, and use that as the ultimate sandbox.
 

TheGardener

Golden Member
Jul 19, 2014
1,945
33
56
I am not a pc tech, so keep this in mind. I did create another account without any admin authorization. Windows (at least 7 does) will bring up a window with the admin account(s) to enter a password for authorization, when you try to execute a routine that requires admin authorization. Of course your family will bug the heck out of you, to share that password. But that is a different problem.

Couldn't you put those movies with read only access on the Public Video directory folder, so everyone has access?

I don't know of a program to do this. But I think Window can do what you want.
 

Elixer

Lifer
May 7, 2002
10,371
762
126
Yeah, I mentioned this (UAC) in my post, but, they are looking for a way for Windows to ask for a password on an attempt to write/modify files, and Windows can't do that.
 

TheRyuu

Diamond Member
Dec 3, 2005
5,479
14
81
Yeah, I mentioned this (UAC) in my post, but, they are looking for a way for Windows to ask for a password on an attempt to write/modify files, and Windows can't do that.

You could modify the permissions so that a standard user only has read/execute access. If files are copied in (while still using that standard account) it will prompt for the admin password.