How Do I Protect *.txt files from Deletion? - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 03-30-2006, 03:20 AM   #1 (permalink)
Newb Techie
 
Join Date: May 2005
Location: Wanganui, New Zealand
Posts: 6
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)
Call me Mak or K
Mod Emeritus
 
KSoD's Avatar
 
Join Date: Sep 2004
Location: C:\
Posts: 35,647
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.
__________________

__________________
I do not accept support questions via EMail, PM, IM or my G+ page!

Phone: LG Optimus G Pro
Running: Stock JB from LG with Nova Launcher

KSoD is offline  
Old 03-30-2006, 04:26 AM   #3 (permalink)
Newb Techie
 
Join Date: May 2005
Location: Wanganui, New Zealand
Posts: 6
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)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
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: 183
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)
Newb Techie
 
Join Date: May 2005
Location: Wanganui, New Zealand
Posts: 6
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)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
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 Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.