Usermin – вебпанель управления для пользователя. Если webmin предназначен для решения задачь администратора, то usermin, задач пользователя.
Разработкой занимается та же команда, что и webmin, между собой они интегрированы и как правило, если находят уязвимость в одной из них, то и во второй она присутствует. Но уязвимостей не находили уже достаточно давно.
Ставим usermin из портов:
cd /usr/ports/sysutils/usermin make install clean
Процесс инсталяции usermin идентичен инсталяции webmin.
После того, как сам порт поставится, мы увидим:
After installing Usermin for the first time you should perform the following steps as root: * Configure Usermin by running ${LOCALBASE}/lib/usermin/setup.sh * Add usermin_enable="YES" to your /etc/rc.conf * Start Usermin for the first time by running ${LOCALBASE}/etc/rc.d/usermin The parameters requested by setup.sh may then be changed from within Usermin itself. ===> Installing rc.d startup script(s) ===> Registering installation for usermin-1.440 ===> Cleaning for usermin-1.440
И точно так же как и с webmin, запускаем сетап скрипт:
/usr/local/lib/usermin/setup.sh
Первый вопрос – где будут храниться конфиги:
*********************************************************************** * Welcome to the Usermin setup script, version 1.440 * *********************************************************************** 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. Config file directory [/usr/local/etc/usermin]:
Подтверждаем выбор по умолчанию.
Следующий вопрос, где будут храниться логи:
Log file directory [/var/log/usermin]:
Следующий вопрос о месте нахождения интерпретатора perl.
*********************************************************************** 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/bin/perl):
Это стандартный путь, и если никто не вмешивался в систему с компилятором, то можно подтверждать.
Далее конфигуратор протестирует перл и выдаст запрос, где usermin будет принимать соединения, на каком порту:
Testing Perl ... Perl seems to be installed ok *********************************************************************** Operating system name: FreeBSD Operating system version: 8.0 *********************************************************************** 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 webserver should use SSL (if your system supports it). Web server port (default 20000):
И последний вопрос, о том, будет ли поддерживаться шифрация при работе:
Use SSL (y/n):y
Лучше подтвердить необходимость использования шифрации.
Потом конфигуратор протестирует все, и создасть конфиги:
*********************************************************************** Creating web server config files.. ..done Creating access control file.. ..done Inserting path to perl into scripts.. ..done Creating start and stop scripts.. ..done Copying config files.. at changepass chfn commands cron cshrc fetchmail file filter forward gnupg htaccess-htpasswd htaccess language mailbox mailcap man mysql plan postgresql proc procmail quota schedule shell spam ssh telnet theme tunnel updown usermount ..done Creating uninstall script /usr/local/etc/usermin/uninstall.sh .. ..done Changing ownership and permissions .. ..done Attempting to start Usermin mini web server.. Pre-loaded WebminCore ..done *********************************************************************** Usermin has been installed and started successfully. Use your web browser to go to https://hilik.org.ua:20000/ and login as any Unix user on your system. 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.
Теперь разрешим запуск usermin:
usermin_enable="YES"
И запустим его:
/usr/local/etc/rc.d/usermin start
Теперь можно соединяться браузером, урл был выше и вводить логин и пароль пользовтеля заведенного в системе. Теперь он сам может управлять своими задачами.