Usermin

  • Webからユーザのパスワード変更をしたい
  • なぜか三重大の奥村先生の usermod2.cc が動かない
    • どうもパスワード変更が働かなくなっている
    • カーネルか、suexec のおかげ?

インストール

  • rootの設定変更を無効化(rootでuserminに入れなくする)
    • vi /etc/usermin/miniserv.conf
      passdelay=1
      denyusers=root
  • 変更できる項目を減らす
    • vi /etc/usermin/webmin.acl
      user: at changepass chfn commands cron cshrc fetchmail file filter forward gnupg
       htaccess-htpasswd htaccess language mailbox mailcap man mysql plan postgresql p
      roc procmail quota schedule shell spam ssh telnet theme tunnel updown usermount
  • 3行に分かれているが、1行で書いてある。
  • 以下のように変更した
    user: changepass htaccess-htpasswd htaccess
  • changepass : パスワード変更
    htaccess-htpasswd : .htpasswd 管理
    htaccess : .htaccess 管理
  • デフォルトで表示する言語を変更する
    • vi /etc/usermin/config
      lang=ja_JP.euc
      • ja_JP.utf-8 にしたら UTF-8 だけど英語で表示された orz