Install Usermin2008/08/15 |
Install Webmin that users can operate your server from web browser. |
|
[1] | Install Authen::PAM and Net::SSLeay. Please reffer to install Net::SSLeay. |
[root@www ~]# yum --enablerepo=dag -y install perl-Authen-PAM # install from DAG
|
[2] | Install Usermin |
[root@www ~]# wget http://downloads.sourceforge.net/project/webadmin/usermin/1.420/usermin-1.420-1.noarch.rpm [root@www ~]# rpm -Uvh usermin-1.420-1.noarch.rpm Preparing... ################################# [100%] Operating system is CentOS Linux 1:usermin ################################# [100%] Usermin install complete. You can now login to https://www.server-linux.info:20000/ as any user on your system. [root@www ~]# vi /etc/usermin/miniserv.conf # add at the bottom: IP address you allow allow=127.0.0.1 192.168.0.0/24 # prohibit root login denyusers=root [root@www ~]# /etc/rc.d/init.d/usermin restart Stopping Usermin server in /usr/libexec/usermin Starting Usermin server in /usr/libexec/usermin |
[3] | Access to 'https://(your hostname or IP address):20000'. Login with a user. |
[4] | You can do various operations, like changing password and so on. |
[5] | Usermin reffers /etc/passwd or shadow for user's password as the default, so it's impossible to change NIS password if you build it. Then change settings of usermin like following example to change NIS password from usermin. |
[root@www ~]# vi /etc/usermin/changepass/config # passwd_cmd=file # line 5: make it comment passwd_cmd=/usr/bin/yppasswd # add [root@www ~]# /etc/rc.d/init.d/usermin restart Stopping Usermin server in /usr/libexec/usermin Starting Usermin server in /usr/libexec/usermin |
|