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.
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?
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
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.
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.
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.
Ratings & Comments
13 Comments
on kubuntu 12.10 x64
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?
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
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.
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.
It dosnt work... :( after I look my katalog in ~ I can normally access it!!!
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.
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.
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?
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
Fixed thank you!
Add trailing semicolon at the end of Actions array in both files
Fixed, thank you.