LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-09-2005, 09:51 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,416

Rep: Reputation: 53
How to lock a file


Hi folks,

How to lock a file of following format

1) .txt or .doc
2) .html or .htm

so that it can be read only. Copying its content with copy/paste command is not allowed, nor duplicating it. Kindy advise.

TIA

B.R.
satimis
 
Old 03-09-2005, 09:57 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Can't be done.

Most you can do is make it readable only by the user that owns it. If something is readable, it's also copyable.

There are ways to make HTML code readable but not copyable via a web browser...but as for a file on some type of *nix box, no. Same thing, I guess with .doc(s) as well, but once again, that's within the application it's meant for, not on the OS level.
 
Old 03-09-2005, 05:50 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,416

Original Poster
Rep: Reputation: 53
Hi Technoslave,

Tks for your advice.

I came across such files on web. I was not allowed to high-light their contents and paste the same to another file. I'm interested to learn how to do it.

However I can print such a file as a .pdf file. So if we can stop this last job then the file shall become read only. To touch it is impossible.

satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't read lock file spooge Slackware 7 12-01-2005 10:25 PM
Can't read lock file /tmp/.X0-lock squinn Linux - Newbie 3 07-13-2004 03:42 PM
Lock file ust Linux - Software 1 10-11-2003 02:11 AM
can't create lock file? Class Zero Linux - Newbie 3 01-30-2002 05:24 AM
red !lock file blistfix Linux - General 0 08-28-2001 06:03 PM


All times are GMT -5. The time now is 02:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration