zoukankan      html  css  js  c++  java
  • usermod

    -a, --append

    Add the user to the supplementary group(s). Use only with the -G option.

    -G, --groups GROUP1[,GROUP2,...[,GROUPN]]]

    A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option.
    If the user is currently a member of a group which is not listed,the user will be removed from the group. This behaviour can be changed via the -a option, which appends the user to the current supplementary group list.

    注意

    • -a-G要配合使用,否则在把用户添加到新的用户组的同时会从现有用户组中移出。
    • 当前用户在线的话不会马上生效,需要注销!
  • 相关阅读:
    Jzoj5542 董先生的钦点
    Jzoj5542 董先生的钦点
    (各种)FFT模板
    (各种)FFT模板
    Jzoj3528 图书馆
    Jzoj3528 图书馆
    Jzoj5317 Func
    Jzoj5317 Func
    Jzoj3591 数据
    【UVa11021】Tribles
  • 原文地址:https://www.cnblogs.com/yaos/p/14014304.html
Copyright © 2011-2022 走看看