实例 将newuser2添加到组staff中: usermod -G staff newuser2 修改newuser的用户名为newuser1: usermod -l newuser1 newuser 锁定账号newuser1: usermod -L newuser1 解除对newuser1的锁定: usermod -U newuser1 usermod –d /data/ftp ftp1 修改ftp1用户登陆的目录这...
usermod -d HOME_DIR USERCopy By default, the command doesn’t move the content of the user’s home directory to the new one. To move the content, use the-moption. If the new directory does not already exist, it is created: usermod -d HOME_DIR -m USERCopy Here is an example showi...