Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 55
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.


Old 03-09-2005, 09:57 AM   #2
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
Senior Member
Registered: Apr 2003
Posts: 3,672

Original Poster
Rep: Reputation: 55
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.



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 > Forums > Linux Forums > Linux - General

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

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