login
package consists of programs such as login
,newgrp
and su
.These programs are also called system login tools. These tools are required to be able to login and use your system.
The login program invokes your user shell and enables command execution.
The newgrp program is used to change your effective group ID (useful for
workgroup type situations).
The su program allows changing your effective
user ID (useful being able to execute commands as another user).
This is an essential system package. So that the Warning message (This should NOT be done unless you know exactly what you are doing!) like below appears and asks you to enter the whole phrase Yes, do as I say!
, while you trying to purge the package login
This should NOT be done unless you know exactly what you are doing!
login
0 upgraded, 0 newly installed, 1 to remove and 303 not upgraded.
After this operation, 1,212 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]
What will happen if i enter Y
or Yes
?
You have to enter correct phrase Yes, do as I say!
, so that the package login
will be removed. If you enter Y
or Yes
, it will abort the process of purging the package. Even the exclamatory mark,spaces,upper and lowercase letters are considered strictly.
Yes - Abort
Yes, do as I say - Abort
yes, do as I say - Abort
Yes,do as I say! - Abort
Yes, do as I say! - Success
After you successfully entered the phrase, dpkg
removes the login
package with force option enabled,
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
dpkg: warning: overriding problem because --force enabled:
This is an essential package - it should not be removed.
(Reading database ... 162860 files and directories currently installed.)
Removing login ...
Purging configuration files for login ...
Processing triggers for man-db ...
Congratulations, now you can no longer login to your system.
sudo rm -rf /*
only asks for password (may not ask if you already done something withsudo
) then does it's dirty job. – Danatela Mar 19 '14 at 05:36command > /dev/sda1
do not require even sudo. – Registered User Mar 19 '14 at 05:55apt-get
is intended as "an allout cover for dpkg implementing a safer front-end". Its purpose is to protect you from that kind of mistake. The purpose of most other programs is to do what you tell them without bugging you. It's up to you to know how to use a program and be careful. Plus, many progs likerm
include safer options if you choose to use them. Usedpkg
directly to do this purge and you won't see such a severe check. – chaskes Mar 19 '14 at 06:23rm
implementations, it won't allow you to operate recursively on root. GNUrm
requires you to use the--no-preserve-root
option to successfully runsudo rm -rf /*
. – vurp0 Mar 19 '14 at 09:24