Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 12357 ideas, 58479 comments, 1187050 votes

Idea #8731: Terminal should prompt before any major change



up
-31
down
Written by Primož Papič the 17 May 08 at 20:32. Category: Security.
Related to: Nothing/Others. Status: New
Description
I know that some might not agree, but there are many good reasons for Terminal to have more prompt messages.
Now terminal prompts you about apt-get install, which is pretty much useless, as you can easily write sudo apt-get install yourprogram -s, for simulation and then decide if you want to install it. But if you write rm -rf it will format your disk without prompting. The same stands with command that gives your user an root account.
I never used any of it, but I heard that this two don't prompt.
You would say that if you write rm -rf in your terminal, you know what your doing. But this is not always the case.
With Linux users numbers rising there will also be nuber of those that would like to show the Linux users that their system isn't without it's flaws. I read somewhere that you can make an script for terminal that contains rm -rf command. I don't know if it really "works" like an virus meaning you could get it from the net and accidentally run it, but it's still an big problem. But this could be simply overridden if rm -rf command would always prompt: "Do you really want to format your partition? N/y".
=============================================================================== ========================================
!!!!!!You CAN already do this: rm -i or rm --interactive=always
=============================================================================== ========================================
The same should apply to whatever that command is, that gives you root power. The prompt should state: "This will render your computer useless, proceed? N/y"
There are probably other very useful commands that can be abused or misused, but I don't know them. All of this commands should come with the prompt. If apt-get can come with the prompt so can these.
If Linux wants ever to be used by general public, this should be done ASAP.
Tags: (none)

Attachments
No attachments.


Duplicates


Comments
Eldmannen wrote on the 17 May 08 at 22:03
This would break many scripts.

Eldmannen wrote on the 17 May 08 at 22:03
This would be non-standard behavior.

glotz wrote on the 17 May 08 at 22:30
Baaaaaaaaaaaaaaaaaaaad idea. Let me say that again. Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaad.

davidpbrown wrote on the 17 May 08 at 22:47
maybe you could propose an animated gui for this?
maybe design it like a talking paper clip.. ARGH

This is a BAD idea :)

PeterKraus wrote on the 17 May 08 at 22:59
Bad idea. You shouldn't use sudo in front of every command you type. And if you use it, double check. Tripple check. Check again, when you enter password.

Primož Papič wrote on the 18 May 08 at 08:59
If understand correctly you can only format your disk with sudo rm .rf, I always thought you just write it and it happens.
But still, why apt get install has the prompt? You can easily remove installed programs. That's just weird.
But I guess it really bad idea...
Just forget it. I'm giving myself -1

wearzeep wrote on the 18 May 08 at 14:54
First of all its a bad idea because it would break alot of stuff.
Don't change the core functionality of Ubuntu too much.
It IS linux, and you can't just change such things.
This reminds me of that awful idea of making rm move things to trash instead of removing it.
Second of all, rm -rf / does not format your drive/partition, it just removes all the files.
It does nothing with the file system.

Primož Papič wrote on the 18 May 08 at 22:12
I didn't know that; i just read that you should never use rm -rf because it erases your disk.
I made a bit of research of rm and found out you can do this already with rm -i or rm -interactive=always
So you should really told me to RTFM (everything is in there)


Post your comment