Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: protection

  1. #11
    Soul-Sing is offline Chocolate-Covered Ubuntu Beans
    Join Date
    Aug 2006
    Beans
    1,374
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: protection

    Quote Originally Posted by ajits View Post
    may I get step by step information to do it?
    rightmousebutton on the file: (in dutch) comprimeren (compress in English?): choose passwd protection.

  2. #12
    Join Date
    Jun 2011
    Location
    INDIA, KERALA,ALAPPUZHA
    Beans
    24
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: protection

    Quote Originally Posted by haqking View Post
    what do you mean how it use ?

    you mean how do you use it ?

    type it in to terminal as shown and replace filename with the file you dont want deleted
    sorry sir ,I can't do it .may I get step by step procedure.

  3. #13
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: protection

    Quote Originally Posted by 3rdalbum View Post
    I think this is what you're really after:

    http://www.cyberciti.biz/faq/how-to-...can-modify-it/

    Also prevents deletion.
    Thank you, 3rdalbum. I had a feeling that access lists could do it, but I'm not familiar with them. That does look exactly right.

  4. #14
    Join Date
    Apr 2008
    Location
    Wisconsin
    Beans
    766
    Distro
    Ubuntu

    Re: protection

    Quote Originally Posted by The Cog View Post
    Thank you, 3rdalbum. I had a feeling that access lists could do it, but I'm not familiar with them. That does look exactly right.
    I do the same thing when I absolutely do not what files modifed, for example on my netbook I dont want a list of recent docs...

    so I basically wipe the file, create a blank one and chattr it, so it cannot be modified from an empty doc

  5. #15
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: protection

    Quote Originally Posted by Primefalcon View Post
    I do the same thing when I absolutely do not what files modifed, for example on my netbook I dont want a list of recent docs...

    so I basically wipe the file, create a blank one and chattr it, so it cannot be modified from an empty doc
    That's one for the memory bank.
    I also noticed chattr +a which makes a file impossible to delete or overwrite, but possible to append - ideal for log files.

  6. #16
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: protection

    Just for my own sanity - wouldn't setting the sticky bit on the containing directory do the job for the OP?

    i.e. chmod 1700 on the directory.

    As far as I understand it that would stop other users deleting the files contained within (presuming the OP owns the directory and files). Wouldn't stop a sudo'er I don't suppose.

    Just asking as I'm not entirely sure my understanding of it is correct


    Edit - after some further reading it seems for this to be an effective solution one would have to create two directories, one inside the other and sticky bit them both otherwise an rm -rf of the single stickied directory would be possible taking the files with it. I think I need to experiment and see if my theory is correct
    Last edited by cryptotheslow; August 19th, 2011 at 04:47 PM. Reason: Additional info...

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •