Usermin : Install2024/09/10 |
Install Usermin that is web based configuration tool for common users. |
|
[1] | Install required packages first. |
root@dlp:~ # pkg install -y perl5 p5-DateTime-Locale p5-DateTime-TimeZone p5-Data-Dumper p5-Digest-MD5 p5-Digest-SHA p5-Encode-Detect p5-File-Path p5-Time-HiRes p5-Time-Local p5-Time-Piece p5-Authen-PAM p5-Net-SSLeay p5-IO-Tty gzip unzip shared-mime-info
|
[2] | Install Usermin. |
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 # add to last line : add access permission allow=127.0.0.1 10.0.0.0/24 # prohibit login as root account 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] | Access to the [https://(server's hostname or IP address):20000/] from a client computer which is in the network you allowed. Then, Usermin login form is displayed, it's possible to login as any OS common user account. |
[4] | This is the main page of Usermin. It's possible to configure various user settings. |