Quick way to use file permissions ?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Flourgrader
Posts: 91
Joined: Fri May 28, 2021 7:55 am

Quick way to use file permissions ?

Post by Flourgrader »

Hi Guys,
I have a set of files I do NOT want deleting.
(I want to write protect them)

I have been playing around with file permissions
inside Windows 10.
I find them very long winded to set up.
Is there a quicker easier way of doing this inside Everything Version 1.5.0.1281a (x64) ?
Batch handling of files would also be very useful in this context?

Here is an example of what I am referring to.

1. Right mouse click on "TestFile.TXT
2. Click on Properties
3. Click on Security Tab
4. Click on Advanced Tab
5. Click on Disable inheritance

6. A prompt will appear with two options in it. Select the one that says Convert inherited permissions into explicit permissions on this object.

7.You’ll now see all of your user accounts listed on your screen. Click on the account that you want to prevent from deleting your file and then click on the Edit button. It’ll let you edit the file permissions for your selected account.

8. Click on Deny from the Type dropdown menu.

and so on.........

Thank You........
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: Quick way to use file permissions ?

Post by horst.epp »

Thats a complicated way for a simple thing.
Why don't you just set the Read only attribute ?
No file manager including Explorer will delete such files without asking you.
Also you can set this attribute for many selected files at once.
Flourgrader
Posts: 91
Joined: Fri May 28, 2021 7:55 am

Re: Quick way to use file permissions ?

Post by Flourgrader »

Hi, horst.epp,
I have no problem in deleting a read only file in windows 10.
Anyone can wilfully delete the file.
See screenshot of Attributes set to read only.
Your suggestion will just stop someone writing to the file, not deleting it.

The example I listed if used will deny the user access to delete
the file. Please see the dialogue box shown in my second screen shot.
Attachments
1st Screenshot
1st Screenshot
Read_Only.jpg (40.55 KiB) Viewed 4974 times
2nd Screenshot
2nd Screenshot
Deny_Access.jpg (21.79 KiB) Viewed 4974 times
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: Quick way to use file permissions ?

Post by horst.epp »

Then you have not set Delete confirmation in Recycle bin properties
Set this and you are safe.
Screenshot - 24.10.2021 , 18_22_09.png
Screenshot - 24.10.2021 , 18_22_09.png (18.57 KiB) Viewed 4957 times
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Quick way to use file permissions ?

Post by raccoon »

I don't think there's anything wrong with your solution, but I would recommend utilizing a batch .cmd file to perform the same action.

I do something similar myself, but I change the Disk and Volume READONLY properties using DISKPART so that the NTFS/FAT file system drivers refuse to write to the disk/volume on a windows/linux/mac computer.

(This will not stop a television, set-top boxes or photo printing kiosks that use stripped down NTFS/FAT controller, nor will NTFS file permissions stop them either.)
Flourgrader
Posts: 91
Joined: Fri May 28, 2021 7:55 am

Re: Quick way to use file permissions ?

Post by Flourgrader »

Thank you, horst.epp,
for your comments,
Yes, I have "Display delete confirmation dialog" turned off.
That is how I want to keep it.
I am sorry if I did not make it clear.
I simply do NOT want some files deleting from the PC!
I do Not even want an option to be displayed to delete files.
I want a firm message you are, "denied permission to do so"

I have a good reason for wanting it set up this way,
but it would be a long-winded explanation and going off on a tangent to do so.

**********
Thank you, raccoon,
Yes, your idea is on the same lines as my thinking.
I will try constructing a batch file,
maybe do a little looking around on the net,
maybe someone has already written something on the lines that I am looking for?
I use Everything a fair bit,
I was NOT looking to introduce third party programs to do a filing job that Everything could do,
that just complicates things, and slows the job down!
it would have been good, if the option had been on a right mouse click drop down menu on the selected file/files,
that I wished to protect from deletion.
As for the time being I will stick with the long-winded way of changing the
files inherited permissions, and deny deletion.
Thank you again for reading my post, everyone!
Post Reply