-s 修改用户登入后所使用的shell。在搭建ftp的过程中,需要使所建立的ftp用户禁止ssh远程登录需要用到:usermod -s /sbin/nologin 用户名恢复:usermod -s /bin/bash 用户名检验:查看etc下的passwd文件cat /etc/passwd如果你所创建的用户后面......
admin
usermod -g 组 用户名修改用户主组(/etc/passwd中的GID)usermod -G 组 用户名修改用户附加组usermod -s /bin/bash 用户名修改用户登录shell例如:usermod -G sudo 用户名可以将用户添加到sudo附加组中,重新登录后获得sudo权限......
admin
友情链接申请要求: 不违法不降权 权重相当 请联系QQ:737597453