elementary / elementary/terminal

Add double verification on rm command

Open
#1,004 1 comment 0 reactions 0 assignees View on GitHub
Needs Design Priority: Wishlist
Dominant language
Vala
Stars
428
Forks
104
Avg merge
1d 54m
Merged PRs (30d)
2

Description

### 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)

Image

|
V

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.