Skip to content

Add double verification on rm command #1004

@SubhadeepJasu

Description

@SubhadeepJasu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DesignWaiting for input from the UX teamPriority: WishlistAn enhancement or new feature. Not a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions