Re: need to block changes to a file



On Wed, 2011-04-13, zix wrote:
Hello Everybody,
I have a file which I want to block any
changes onto it. How may I accomplish that in kernel space through a
module? lets for example, I have some data in /var/carddetails.txt,
which I dont want any user to not to delete that. He should be able to
read/write, but not delete, move etc. Can anybody suggest me ways to
do in linux?

Why can't you use the normal Unix permissions model? Is the user root?

Your requirements are also self-conflicting: you want to "block any
changes", but the user "should be able to read/write".

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
.



Relevant Pages

  • Re: need to block changes to a file
    ... How may I accomplish that in kernel space through a ... Is the user root? ... Linux has to work his way; he won't adapt his workflow to the ...
    (comp.os.linux.development.system)
  • need to block changes to a file
    ... How may I accomplish that in kernel space through a ... do in linux? ...
    (comp.os.linux.development.system)