{"id":169,"title":"linux\u7528\u6237\u7ec4\u547d\u4ee4-groupadd\u4e0egroupdel","good":0,"bad":0,"hit":1519,"created_at":"2016-01-31 23:56:38","content":"
\u7528\u6237\u7ec4\u7684\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e\/etc\/group<\/p>
\u53ef\u4ee5\u7528cat \/etc\/group\u67e5\u770b\uff0c\u5176\u4e2d\u7684\u5185\u5bb9\u7c7b\u4f3c\u4e0b\u9762\uff1a<\/p>
stapusr:x:490:
gdm:x:42:
hurong:x:500:
mysql:x:27:
\u6bd4\u5982\uff1ahurong:x:500<\/p>
hurong\u8868\u793a\u7ec4\u540d<\/p>
x\u8868\u793a\u7684\u662f\u52a0\u5bc6\u7684\u7ec4\u6743\u9650\uff0c\u65e0\u6cd5\u76f4\u63a5\u67e5\u770b<\/p>
500\u8868\u793a\u7ec4id<\/p>
<\/p>
\u5bf9\u7ec4\u7684\u64cd\u4f5c\u9700\u8981root\u7528\u6237\u767b\u5f55\u624d\u53ef\u4ee5,\u540c\u4e00\u4e2a\u7528\u6237\u53ef\u4ee5\u5728\u591a\u4e2a\u7ec4\u4e2d
<\/p>
<\/p>
\u6dfb\u52a0\u7528\u6237\u7ec4: groupadd<\/strong><\/p> [hurong@localhost etc]$ su root \u770b\u5230\u7ed3\u679c\u7c7b\u4f3c\u5982\u4e0b\uff0c\u65b0\u5efa\u4e86\u4e00\u4e2atest\u7ec4\uff0cid\u4e3a501\uff1a<\/p> gdm:x:42: [root@localhost etc]# groupdel test
Password:
[root@localhost etc]# groupadd test
[root@localhost etc]# cat \/etc\/group
<\/strong><\/p>
<\/strong><\/p>
hurong:x:500:
mysql:x:27:
test:x:501:
[root@localhost etc]#
<\/strong>\u5220\u9664\u7528\u6237\u7ec4\uff1agroupdel \u7ec4\u540d<\/strong><\/p>
\u4e0a\u9762\u7684\u547d\u4ee4\u53ef\u4ee5\u5220\u9664\u521a\u6dfb\u52a0\u7684test\u7ec4
<\/strong>
<\/p>"}