You are here

How do u prevent files from being deleted????

9 posts / 0 new
Last post
Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-12-06 22:35
How do u prevent files from being deleted????

I was wondering if there is a way to flag files or something so if someone tries to delete a file u have it would say something like "ACCESS DENIED" or just it wont delete. Cause i wanted to do that and encrypt them with toucan. Any help will be appreciated.

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 1 week 3 days ago
Joined: 2006-11-18 10:26
Depends on the app being

Depends on the app being used but you could make a file's attributes "read only" or change the permissions on the file(s)/folder(s) so that the user account you're using has read & execute permissions only.

A better explanation of what you're trying to accomplish or avoid or what happened in the past could help us make a better recommendation. "I had a virus", "I accidentally deleted files", or "A program deleted my pr0n stash and I can't undelete my files". Something like that.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-12-06 22:35
What i meant was

Its i because me and my little brother share a usb 4 school and sometimes he deletes things that he shouldnt and i wanted to find a way to prevent this from happening. but i know even if u encrypt a file u can still delete it, so about what u said, how do u change the permission 4 a file so no matter what he cannot delete my files unless i take the permission off lets say by using a password. Is there a program to do this or can u do this without a program?

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 1 week 3 days ago
Joined: 2006-11-18 10:26
If the USB device is

If the USB device is formatted using the FAT16 or FAT32 filesystem (which it most likely is) then no, there's no way for you change permissions on the files. My suggestion would be to get your own device and if that's not possible, create a hidden Truecrypt file on it to store your files in.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-12-06 22:35
Well i have a portable harddrive

I have a portable harddrive that is formated in NTFS would i be able to change the permissions on that??

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

rab040ma
Offline
Last seen: 6 days 22 hours ago
Joined: 2007-08-27 13:35
First off, the FAT formats

First off, the FAT formats all have the ability to set a file read-only. Of course, anyone can set read-only, and anyone can unset it. So if your little brother is deleting by accident, setting files read-only might help a lot, but if he is being malicious he could remove the read-only flag and then delete.

You can format the USB drive with NTFS, that's the only way to have NTFS permissions apply to a file on the USB drive. (If you put permissions on a file when it is on the NTFS hard drive, the permissions will be converted to FAT's much weaker ones when you copy it onto the USB drive running FAT). However, if you are taking an NTFS drive to school, you'd likely end up in a different security context, and you might find yourself locked out of your own files.

MC

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-12-06 22:35
yeah thats right

i guess i will just make a truecrypt volume on my usb

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

rab040ma
Offline
Last seen: 6 days 22 hours ago
Joined: 2007-08-27 13:35
Well, make backups too.

Well, make backups too. Someone could "accidently" delete the Truecrypt volume.

Are you sure you'll be able to mount it at school?

Does your brother have a birthday coming up? Maybe you could get him his own USB drive. That would solve the problem. Wink

MC

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-12-06 22:35
yeah in like 2 months

ill try to get him a 1 gig memory stick since they r like $20 so he will stop using mine.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Log in or register to post comments