Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

HOW TO protect against deleting files.

Post your How to's here


HOW TO protect against deleting files.

Postby Admin-Amir » Fri Aug 28, 2009 12:17 pm

Deletion rm command will be replaced by a system with safe-rm.
Users who try to delete a protected file or folder can not delete them an alert message is displayed on the screen.
To determine a list of folders / files at operating system globally or per user.
Deletion rm command will be replaced by a system with safe-rm.
Users who try to delete a protected file or folder can not delete them an alert message is displayed on the screen.

To determine a list of folders / files at operating system globally or per user.

Installation
Installing safe-rm is the most simple installation. A single file which replaces the original rm command.




1. Download the package - tar of safe-rm link below:
http://code.google.com/p/safe-rm

2. Is the location of a file (command rm) command with which the following way:
which rm
Path we received (eg bin / rm /) will treat without command rm itself, so in our case the path is bin / Oniitzg it down some - for simplicity

3. Nfros the file - tar file containing the safe-rm user root (or using sudu) copy the above file location required
Code: Select all
sudo cp safe-rm / /.


4. Now we keep the original backup file rm:
Code: Select all
sudo mv / / rm / / rm.original


5. Change the file name can be safe-rm runtime permissions for all users:
Code: Select all
sudo mv / / safe-rm / / rm


Code: Select all
sudo chmod a x / / rm


Actions we implemented the system will use - safe-rm instead of rm. Now you can use - safe-rm in normal reading to - rm when deleting files / folders securely knowing you can not make, error, damage the operating system.

Thanks to Miki Barzily.
From - JaYa.co.il.
Admin-Amir
 

Return to How To's (Do not post questions please)

Who is online

Users browsing this forum: No registered users and 6 guests