Usermin : インストール2024/09/10 |
Web ブラウザーから一般ユーザーが自身のパスワードの変更や各種設定変更が実行可能となる Usermin をインストールします。 |
|
[1] | 必要なパッケージをインストールしておきます。 |
root@dlp:~ # fetch https://www.webmin.com/download/usermin-current.tar.gz root@dlp:~ # tar zxvf usermin-current.tar.gz root@dlp:~ # cd usermin-2.010 root@dlp:~/usermin-2.010 # mkdir /usr/local/etc/rc.d root@dlp:~/usermin-2.010 # ./setup.sh /usr/local/usermin **************************************************************************** Welcome to the Usermin setup script, version 2.010 **************************************************************************** Usermin is a web-based interface that allows Unix-like operating systems and common Unix services to be easily administered. Installing Usermin from /root/usermin-2.010 to /usr/local/usermin **************************************************************************** Usermin uses separate directories for configuration files and log files. Unless you want to run multiple versions of Usermin at the same time you can just accept the defaults. Config file directory [/etc/usermin]: /usr/local/etc/usermin Log file directory [/var/usermin]: /var/log/usermin **************************************************************************** Usermin is written entirely in Perl. Please enter the full path to the Perl 5 interpreter on your system. Full path to perl (default /usr/local/bin/perl): Testing Perl .. .. done **************************************************************************** Operating system name: FreeBSD Operating system version: 14.1 **************************************************************************** Usermin uses its own password protected web server to provide access to the administration programs. The setup script needs to know : - What port to run the web server on. There must not be another web server already using this port. - If the web server should use SSL (if your system supports it). Web server port (default 20000): Use SSL (y/n): y **************************************************************************** ..... ..... Usermin has been installed and started successfully. Since Usermin was installed outside the package manager, ensure the following recommended Perl modules and packages are present: Perl modules: - DateTime, DateTime::Locale, DateTime::TimeZone, Data::Dumper - Digest::MD5, Digest::SHA, Encode::Detect, File::Basename - File::Path, Net::SSLeay, Time::HiRes, Time::Local, Time::Piece - lib, open Packages: - openssl - Cryptography library with TLS implementation - shared-mime-info - Shared MIME information database - tar gzip unzip - File compression and packaging utilities Use your web browser to go to the following URL and login with the name and password you entered previously: https://dlp.srv.world:20000 Because Usermin uses SSL for encryption only, the certificate it uses is not signed by one of the recognized CAs such as Verisign. When you first connect to the Usermin server, your browser will ask you if you want to accept the certificate presented, as it does not recognize the CA. Say yes.
root@dlp:~/usermin-2.010 #
vi /usr/local/etc/usermin/miniserv.conf # 最終行に追記 : アクセス許可する IP アドレス allow=127.0.0.1 10.0.0.0/24 # root ログイン禁止 denyusers=root
root@dlp:~/usermin-2.010 # cat > /usr/local/etc/rc.d/usermin.sh <<'EOF'
#!/bin/sh
. /etc/rc.subr
name=usermin
rcvar=`set_rcvar`
start_cmd="/usr/local/etc/usermin/.start-init"
stop_cmd="/usr/local/etc/usermin/.stop-init"
load_rc_config ${name}
run_rc_command "$1"
EOF
root@dlp:~/usermin-2.010 # chmod 755 /usr/local/etc/rc.d/usermin.sh root@dlp:~/usermin-2.010 # service usermin.sh enable root@dlp:~/usermin-2.010 # service usermin.sh restart Stopping Usermin server in /usr/local/usermin Starting Usermin server in /usr/local/usermin |
[3] | ローカルホスト または 任意のクライアントコンピューターで Web ブラウザーを起動し、[https://(サーバーのホスト名 または IP アドレス):20000/] へアクセスすると Usermin の ログイン画面が表示されます。任意の一般ユーザーでログイン可能です。 |
[4] | Usermin のメイン画面になります。ここからパスワード変更等々、様々な操作を行うことができます。 |
[5] | 左メニューで [Usermin] - [Change Language] をクリックすると、右ペインで言語の変更も可能です。 |
|