Problem
Elementary currently allows the user to run commands like "sudo rm -rf /*" which would wipe out most of the system and make it unusable. Granted one way for users to run is if they are pranked into doing so, or they ignore the paste warning.
Proposal
Add a check on the command "rm -rf /". If detected, tell the user: "This command is dangerous and might make the computer unsable. If you want to proceed despite risks type: 'YES DELETE EVERYTHING'.
This check only needs to be done if the it detects that the target is any system folder.
This will not stop the user from running it anyway and if the user types the words, it will assume that the user made an informed choice.
Prior Art (Optional)
|
V

Problem
Elementary currently allows the user to run commands like "sudo rm -rf /*" which would wipe out most of the system and make it unusable. Granted one way for users to run is if they are pranked into doing so, or they ignore the paste warning.
Proposal
Add a check on the command "rm -rf /". If detected, tell the user: "This command is dangerous and might make the computer unsable. If you want to proceed despite risks type: 'YES DELETE EVERYTHING'.
This check only needs to be done if the it detects that the target is any system folder.
This will not stop the user from running it anyway and if the user types the words, it will assume that the user made an informed choice.
Prior Art (Optional)
|
V