我已经成功编写了这段代码。它运行,但没有对用户信息进行任何更改。好像usermod
不行啊我想要做的是,能够编辑系统中现有用户的信息?
printf "\nEnter user name to edit: "
read -r usermod
[ -n $usermod ] && usermod $usermod
unset usermod
echo " A user name has been edited"
我已经成功编写了这段代码。它运行,但没有对用户信息进行任何更改。好像usermod
不行啊我想要做的是,能够编辑系统中现有用户的信息?
printf "\nEnter user name to edit: "
read -r usermod
[ -n $usermod ] && usermod $usermod
unset usermod
echo " A user name has been edited"