[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: protect a file



Hey Anuj,

If he can modify it in an editor, he can delete all the contents and
replace them with new contents.  That's as bad as overwrite.

If you want him to be able only to append, you'll probably have to
hack the kernel "open" and "creat" system calls.

Regards,

-- Raju

>>>>> "Anuj" == Anuj Kumar <Anuj@xxxxxxxxxxxxx> writes:

    Anuj> Result, My Directory permison is 755. and chown root.root .
    Anuj> My file inside this diretory.  The File permisson is 766 and
    Anuj> chown root.root.

    Anuj> You are right.  In this case a user can not delete the file.
    Anuj> User can modify the file.

    Anuj> But still I have problem regarding overwrite. User can
    Anuj> overwite the file.

    Anuj> Can file manain any uniqe ID?  can I use any deamon?

    Anuj> Regards,




    Anuj> ----- Original Message ----- From: Raju Mathur
    Anuj> <raju@xxxxxxxxxxxxxxx> To:
    Anuj> <linux-delhi@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, November
    Anuj> 14, 2000 8:27 PM Subject: [linux-delhi] protect a file


    >> Hi Anuj,
    >> 
    >> You can implement this by giving the user write permission on
    >> the file without giving her write permissions on the directory
    >> in which the file is located.
    >> 
    >> Regards,
    >> 
    >> -- Raju
    >> 
    >> >>>>> "Anuj" == Anuj Kumar <Anuj@xxxxxxxxxxxxx> writes:
    >> 
    Anuj> Hello Dear, I want protect a file. This is an excel file.
    Anuj> User can use the file, read the file, modify the file.  But
    Anuj> user can not remove the file And can not overwrite the file.
    Anuj> How can do this ??  Waiting your valuable guidance.
    Anuj> Regards, Anuj