6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

1分で実現できる有用な技術Advent Calendar 2015

Day 3

root権限でできる危険技

Last updated at Posted at 2015-12-03

1分で実現できる有用な技術 Advent Calendar 2015 3日目が空いていたので。

  • root権限(sudo)を渡すのは危険。

マウントしているDISKの初期化

  • パーティションテーブルとブート領域が消えて、次回OS起動できなくなる。
    • /領域すら消せる。
/dev/sdaの先頭をゼロ埋め
dd if=/dev/zero of=/dev/sda bs=1M count=100

強制再起動

  • これは有名。reboot
echo s > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?