Install Usermin
[1] Install Authen::PAM and Net::SSLeay. Please reffer to install Net::SSLeay.
[root@www ~]# yum -y install perl-Authen-PAM
[2] install Usermin
[root@www ~]# wget
[root@www ~]# rpm -Uvh usermin-1.290-1.noarch.rpm
Preparing... ################################# [100%]
Operating system is CentOS Linux
1:usermin ################################# [100%]
Usermin install complete. You can now login to
as any user on your system.
[root@www ~]# vi /etc/usermin/miniserv.conf
allow=127.0.0.1 192.168.0.0/24 // bottom: IPs you permit to access
denyusers=root // no root login
[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):20000'. Login with a user.
[4] You can do various operations, for example changing password.
[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
阅读(1615) | 评论(0) | 转发(0) |