Linux 教程
Linux usermod命令用于修改用戶帳號。
usermod可用來修改用戶帳號的各項設定。
usermod [-LU][-c <備注>][-d <登入目錄>][-e <有效期限>][-f <緩沖天數>][-g <群組>][-G <群組>][-l <帳號名稱>][-s <shell>][-u <uid>][用戶帳號]
參數說明:
更改登錄目錄
# usermod -d /home/hnlinux root
改變用戶的uid
# usermod -u 777 root其他擴展