Author Topic: Secure right click file deletion.  (Read 579 times)

Offline Jonesy

  • Sr. Member
  • ****
  • Posts: 301
Secure right click file deletion.
« on: July 24, 2012, 03:06:44 PM »
For those that want to try this, and I make no guarantee as to it's efficacy.

Here's what i did to add a right click secure delete action for files and folders..

Make sure you have bcwipe installed from the repo. Create a wipefiles.desktop file and paste this code into it.

Code: [Select]

[Desktop Action delete]
Exec=bcwipe -rf -mt
Icon=bleachbit
Name=Delete File

[Desktop Entry]
Actions=delete;
Name=wipefolders
Name[en_US]=wipefolders
Type=Service
X-KDE-ServiceTypes=all/allfiles,inode/directory,KonqPopupMenu/Plugin



As root (obviously) put it in /usr/share/kde4/services/ServiceMenus

Log out and back in. There should now be a secure Delete File option in the Actions menu when you right click
on a file or folder. I used the bleachbit icon because the new one is really cool but you can use any icon you like.

If anyone finds this doesn't work (how can you tell?) or has an improvement let me know.
« Last Edit: July 24, 2012, 03:26:36 PM by Jonesy »
"But it was ok before.... honest"

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10647
  • MLUs Forever!
Re: Secure right click file deletion.
« Reply #1 on: July 24, 2012, 03:46:34 PM »
I already have a secure delete option in the actions of the right click service menu ..... it uses

shred -x -z -u %u

according to what I can see.
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Jonesy

  • Sr. Member
  • ****
  • Posts: 301
Re: Secure right click file deletion.
« Reply #2 on: July 24, 2012, 04:20:38 PM »
Was it installed with shred or did you have to configure it?. I been looking for something like this for ages and couldn't find anything even remotely like it, hence my effort..
"But it was ok before.... honest"

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10647
  • MLUs Forever!
Re: Secure right click file deletion.
« Reply #3 on: July 25, 2012, 01:31:59 AM »
I have been trying to figure out how I got that ....  or how I put it there .....  have completely forgotten :(

I *think* I might have used   servicemenueditor  to make the entry. I really don't know ....  but I can find no other explanation  ;)

Here are a couple of threads that you might find useful.

I am not in any way suggesting this as an alternative to what you have posted, but thought it might be of interest ...

http://www.pclinuxos.com/forum/index.php/topic,101768.0.html

http://www.pclinuxos.com/forum/index.php/topic,101892.0.html

The second has a test rpm which I have not used but should work fine on KDE 4.6.5 ....  not so sure about KDE 4.8.3

My apologies if I gave the wrong impression with my first post regarding the presence of the 'Secure Delete' option .....  I honestly didn't remember .....  and still don't recall creating it  :D :D

« Last Edit: July 25, 2012, 01:36:05 AM by Just18 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline bicol_willem

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2378
Re: Secure right click file deletion.
« Reply #4 on: July 25, 2012, 02:32:43 AM »
I am happy with this stuff, thanks. It has irked me a long time to know that "Delete as root" never worked for me. Always leads to "cannot execute command rm -f -r bla bla bla".

This could be IT!  ;)