Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Windows Operating Systems and Software » How Do I Protect *.txt files from Deletion?
Closed Thread
Old 03-30-2006, 03:20 AM   #1 (permalink)
Wheelz's Avatar
 
Newb Techie

Join Date: May 2005

Location: Wanganui, New Zealand

Posts: 6

Wheelz

Default How Do I Protect *.txt files from Deletion?

Hi,

Is there a way of protecting .txt files from being deleted but still allowing them to be edited? I realise that you could still edit a file's content to the point of virtual deletion but that requies deliberate action whereas a file can be accidentally deleted quite easily, and if it's on a server it's gone for good, barring the previous scheduled backup.
Any ideas appreciated.
Wheelz is offline  
Old 03-30-2006, 03:51 AM   #2 (permalink)
Mak213's Avatar
 

Join Date: Sep 2004

Location: C:\Windows\System32

Posts: 25,730

Mak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to all

Default

Well the simple answer is no. Basically make sure they people know not to delete them. That is the only thing you can do. Nothing is safe from being deleted. Unless it is in use and even then it can be force deleted.
__________________
R.I.P. Danny L. Trotter
14 Nov 1945 - 4 Sept 2009
Images created by CarnageX | Decaptured...Listen! | Visit Baezware!! | You've been Mak'd! | 儿做好
I do not accept support questions via EMail, PM, IM or my Spaces page! .:|:. This is what happens when an unstoppable force meets an immovable object.
Thanks to all the guys on the staff for your support in my time of need. Hefe you are my personal Hero for your contribution.



<<<< If I help you, or you just like what I said, rep me
Mak213 is offline  
Old 03-30-2006, 04:26 AM   #3 (permalink)
Wheelz's Avatar
 
Newb Techie

Join Date: May 2005

Location: Wanganui, New Zealand

Posts: 6

Wheelz

Default

Hmm..... I was afraid of that.
I guess I could get my VB to write/append the file to 2 places. (One unseen) This is probably the easier option.

Thanks for the reply.
Wheelz is offline  
Old 03-30-2006, 10:53 AM   #4 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

Quote:
Originally posted by Makaveli213
Nothing is safe from being deleted.

on ntfs filesystem, you can set the the file permissions to read and write only.

Quote:
Write
This allows the user or group to overwrite the file, change its attributes, view its ownership, and view the permissions set.

only an admin can override file permissions.

The modify file permission allows Write + the ability to delete.
office politics is offline  
Old 03-30-2006, 12:35 PM   #5 (permalink)
 
True Techie

Join Date: Mar 2006

Posts: 186

wasisnt

Default

I was thinking the same thing as csamuels. If you dont give the users modify or full control permissions but only write then that may work. Assuming you are on a NTFS volume.
wasisnt is offline  
Old 03-30-2006, 02:28 PM   #6 (permalink)
Wheelz's Avatar
 
Newb Techie

Join Date: May 2005

Location: Wanganui, New Zealand

Posts: 6

Wheelz

Default

Thank you all,

I'm not sure that it is NTFS. I have an idea we may be running a Linux server. I will check it out.
Thanks again.
Wheelz is offline  
Old 03-30-2006, 02:29 PM   #7 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

if its linux, chmod the file to change permissions

http://en.wikipedia.org/wiki/Chmod
office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On