[SOLVED] Protect your folders without encryption with password from malicious programs/script

view full story

http://ubuntuforums.org – Here I am showing some scripts I am using to protect folders against deletion or from view or both. To protect from deletion only 'chattr' command was used. But to prevent both deletion and viewing I change the parent folder ownership to 'root' and set folder property to 'list files only'. But these operations can be done only by sudoers. But here I will show a script for doing the same by a normal user with separate password for each user. User is allowed to do operation on folder only if proper user password is given. In the .tar file attached three scripts. Extract the three files to '/us (Hardware)