当用户user登录是调用/usr/bin/changeip.sh
useradd userpasswd user #修改密码vim /etc/passwduser:x:0:0::/home/user:/bin/changeip.sh
接下来你懂的!
#/usr/bin/changeip.sh脚本如下#!/bin/bash netdevice=eth0 show_ip() { echo -e "