Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

This is a discussion on prevent files being deleted in the Shared & Semi-Dedicated forum
hi everyone, Ok i have some mission critical files on a server and i need to prevent them from being deleted in anyway shape or ...

  1. #1
    Rob
    Rob is offline
    I am the one and only Rob's Avatar
    Join Date
    Nov 2005
    Location
    It varies
    Posts
    425

    prevent files being deleted

    hi everyone,

    Ok i have some mission critical files on a server and i need to prevent them from being deleted in anyway shape or form. Anyone know how to achieve this or is it impossible to do?

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Yeah... pretty much impossible, I'd say...

    Personally, I stick my mission critical files outside the web path. That way, at least you'll have a fighting chance! I've got files, outside the web path, that have been there since I joined JagPC (4 years ago), and that's even after being moved numerous times to different servers...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    You can remove the write rights on those files (for example from shell, with chmod). That should block deleting them too.

    Of course you / your applications can put those write rights back on at any time, so I don't know if that's good enough for you. If not, I suppose you could ask support to disown them from you, i.e. change ownership to 'root' and only give you (i.e. your software) read / execute rights. That should make it impossible for you and anyone using your account to delete (or change) them.

    Before you do, ask yourself whether they're really finished and stable though; it also means you can't update them yourself and I don't suppose they'd be happy if you come back asking for changes every week or so.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  4. #4
    Rob
    Rob is offline
    I am the one and only Rob's Avatar
    Join Date
    Nov 2005
    Location
    It varies
    Posts
    425
    ive tried chmodding them to the lowest possible value but they can still be deleted. however i will try changing the ownership of the files to root like you said. I wont need to contact support as its my server and i have the root password

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Rob View Post
    iI wont need to contact support as its my server and i have the root password
    Atta boy!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

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
  •