色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

Centos下添加用戶到用戶組

瀏覽:58日期:2024-07-10 14:45:07

將一個(gè)用戶添加到用戶組中,千萬(wàn)不能直接用:usermod -G groupA

這樣做會(huì)使你離開(kāi)其他用戶組,僅僅做為 這個(gè)用戶組 groupA 的成員。應(yīng)該用 加上 -a 選項(xiàng):usermod -a -G groupA user

(FC4: usermod -G groupA,groupB,groupC user)-a 代表 append, 也就是 將自己添加到 用戶組groupA 中,而不必離開(kāi) 其他用戶組。

命令的所有的選項(xiàng),及其含義:Options:-c, --comment COMMENT new value of the GECOS field-d, --home HOME_DIR new home directory for the user account-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE-f, --inactive INACTIVE set password inactive after expirationto INACTIVE-g, --gid GROUP force use GROUP as new primary group-G, --groups GROUPS new list of supplementary GROUPS-a, --append append the user to the supplemental GROUPSmentioned by the -G option without removinghim/her from other groups-h, --help display this help message and exit-l, --login NEW_LOGIN new value of the login name-L, --lock lock the user account-m, --move-home move contents of the home directory to the newlocation (use only with -d)-o, --non-unique allow using duplicate (non-unique) UID-p, --password PASSWORD use encrypted password for the new password-s, --shell SHELL new login shell for the user account-u, --uid UID new UID for the user account-U, --unlock unlock the user account

查看用戶所屬的組使用命令:$ groups user

或者查看文件:$ cat /etc/group

標(biāo)簽: CentOS
相關(guān)文章:
主站蜘蛛池模板: 女人张开腿让男人桶视频 | 找个毛片看看 | 国产人成久久久精品 | 国产精品亚洲第一区柳州莫青 | 国产欧美一区二区三区视频在线观看 | 国产亚洲女在线精品 | 欧美日本一区二区三区道 | 91视频99| 空姐毛片 | 曰本人做爰大片免费观看一 | 日韩欧美国产精品第一页不卡 | 久久久久久一级毛片免费野外 | 免费在线精品视频 | 私人午夜影院 | 偷拍亚洲欧美 | 好看毛片 | 中国一级毛片aaa片 中国一级毛片录像 | 久久综合成人网 | 欧美一区永久视频免费观看 | 在线不卡一区二区 | 国产成人99久久亚洲综合精品 | 欧美同性videos在线可播放 | 欧美极品在线 | 国产只有精品 | 九色97 | 高清一区二区三区免费 | 成人做爰毛片免费视频 | 欧美日韩一区二区视频图片 | 99re9精品视频在线 | 亚洲综合综合在线 | 在线播放国产视频 | 国内成人精品视频 | 国美女福利视频午夜精品 | 中文字幕三区 | 欧美成一级 | 国产在线美女 | 欧美视频在线观看免费精品欧美视频 | 亚洲第一网色综合久久 | 欧美在线一级va免费观看 | 国产精品一区二区免费 | 2022免费国产精品福利在线 |