[2] Usermin – Konfiguracja

31 stycznia 2024 Wyłączono przez Adam [zicherka] Nogły

Aby skonfigurować Usermin’a należy uruchomić prosty skrypt:

root@vfbsd01:~ # /usr/local/lib/usermin/setup.sh
***********************************************************************
*            Welcome to the Usermin setup script, version 1.860       *
***********************************************************************
Usermin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Usermin in /usr/local/lib/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.

Log file directory [/var/log/usermin]: # [Enter]

***********************************************************************
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): # [Enter]

Testing Perl ..
.. done

***********************************************************************
Operating system name:    FreeBSD
Operating system version: 13.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): # [Enter]
Use SSL (y/n): y # wpisz [Y]

***********************************************************************
Creating web server config files ..
.. done

Creating access control file ..
.. done

Creating start and stop init scripts ..
.. done

Creating start and stop init symlinks to scripts ..
.. done

Copying config files ..
.. done

Changing ownership and permissions ..
.. done

Dodajmy teraz wpis do pliku [/etc/rc.conf], który spowoduje uruchomienie serwera Usermin wraz ze startem systemu.

root@vfbsd01:~ # mcedit /etc/rc.conf
# dodaj na końcu
usermin_enable="YES"

Aby pierwszy raz uruchomić Webmin’a wykonaj

root@vfbsd01:~ # service usermin start