Lock It (File Locker/Unlocker)
Dolphin Service Menus
Description:

This service menu uses the file system attributes to prevent user for delete very important files and folders, such as music, video, school works, company databases, etc..
It depends on the \"chattr\" command provided by the \"e2fsprogs\", and works only with ext2, ext3 and ext4 file system.
Only the root user can lock or unlock the files, and when a file is locked, not even root can delete it.
The use is pretty simple. Lock the files that you want to protect, when you need to modify a protected file or add a new file to a protected folder, just unlock it, when you finish working with it, lock it again.

- Installation

Just uncompress the file to:

~/.kde4/share/kde4/services/ServiceMenus/

And restart Dolphin and Konqueror.

xrooters

4 years ago

on kubuntu 12.10 x64

Report

hipersayanx

5 years ago

On Arch Linux it works well, I use it day-by-day. I don't know what do you meant with "errors", I tested the code in Bash before and give no errors.
Are you using the last version?

Report

aimeylie

5 years ago

Bonjour,

Cela ne fonctionne pas en "unlocked" sur une Debian, Madriva et Ubuntu avec KDE 4 !? En regardant votre code, je me suis apperçu de beaucoup d'erreurs ! Cela ne peut fonctionner chez vous. NULL --> 0/10

Hello ,

This does not work in "unlocked" on Debian , and Ubuntu with KDE Madriva 4 ! ? Looking at your code , I preview a lot of mistakes ! This can work for you . NULL - > 0/10

Report

aimeylie

5 years ago

Hello, my machine : debian 6.0.4 kernel 2.6.32.5-686 et KDE 3.5.10.

Functions in locked and no in unlocked! Why?

Thank you.

Report

hipersayanx

5 years ago

I not tested this service in KDE 3.5, just in KDE 4, I have no idea if this is a problem related to your desktop, sorry.
If you have a folder that is still locked, you can unlock it with:

su -c 'chattr -i -R /path/to/folder'

For files, just remove the -R parameter.

Report

masterdany88

5 years ago

It dosnt work... :(
after I look my katalog in ~
I can normally access it!!!

Report

hipersayanx

5 years ago

What do you mean with "normally"?
Once a file is locked you can access it for view and read, but you can't access it for edit, write or delete, not even root can do it, not even from a LiveCD.
But this work only on files and folders located in ext2, ext3 and ext4 partitions.

Report

gnagnibu

5 years ago

After locking a file or folder with non privileged user, I can delete it.
You said the plugin works only with root permissions: I think it will ask me for sudo password, but isn't it.

Report

hipersayanx

5 years ago

What file system are you using?
If you run this command:

sudo chattr +i -R folderToLock

or

sudo chattr +i fileToLock

What is the error message?

Report

gnagnibu

5 years ago

Problem solved.
The problem is exec option into file .desktop; the solution is:

...
Exec=kdesudo "chattr +i -R %U" && notify-send 'Folders Locked'
...
Exec=kdesudo "chattr -i -R %U" && notify-send 'Folders Unlocked'

and

...
Exec=kdesudo "chattr +i %U" && notify-send 'Files Locked'
...
Exec=kdesudo "chattr -i %U" && notify-send 'Files Unlocked'

I'm running Kubuntu 11.10

Report

hipersayanx

5 years ago

Fixed thank you!

Report

kdekda

5 years ago

Add trailing semicolon at the end of Actions array in both files

Report

hipersayanx

5 years ago

Fixed, thank you.

Report

Supporters

Recent Donations

Be the first to donate
Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 55%
55.00 Likes
45 Dislikes

0 Supporters for Lock It (File Locker/Unlocker):

Recent Donations:

Be the first to donate
show all
Details
version
1.1.0
updated Feb 07 2012
added Jan 09 2012
downloads
page views 587
support hipersayanx
For The Product
Lock It (File Locker/Unlocker)
5 - 10 - 25 - 50 - 100 - 200 - 500