将用户kkk添加到root组中后,如何将kkk从root组中移除
usermod -d kkk root,将用户kkk添加到root组中后,如何将kkk从root组中移除.....................
usermod -d kkk root,将用户kkk添加到root组中后,如何将kkk从root组中移除.....................
2016-10-19
gpasswd -d kkk root
gpasswd -h:
Usage: gpasswd [option] GROUP
Options:
-a, --add USER add USER to GROUP
-d, --delete USER remove USER from GROUP
-h, --help display this help message and exit
-Q, --root CHROOT_DIR directory to chroot into
-r, --delete-password remove the GROUP's password
-R, --restrict restrict access to GROUP to its members
-M, --members USER,... set the list of members of GROUP
-A, --administrators ADMIN,...
set the list of administrators for GROUP
Except for the -A and -M options, the options cannot be combined.
http://www.imooc.com/learn/111 兄弟你可以把这一节的第三小节详细看一下,应该就没啥问题了
举报