LoginSignup
0
0

More than 1 year has passed since last update.

webarenaでubuntu その59

Last updated at Posted at 2022-06-15

概要

webarenaでubuntu18.04やってみた。
サーバーが重いので調査してみた。

topコマンド

  • 異常なし。

dfコマンド

  • /dev/sda1が100%

duコマンド

  • du -h max-depth=1 /
  • du -h max-depth=1 /var
  • du -h max-depth=1 /var/mail
  • /var/mail/userが13G

ここで、問題

  • /var/mail/userは、chmod600で、パスワード不明(記録してるパスワードが通らない)

(あわてず)passwdでパスワード変更

  • sudo passwd user

userになって、削除

  • su user
  • cat /dev/null > /var/mail/user

以上。

0
0
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
0
0