리눅스 groupdel

(Groupdel에서 넘어옴)

1 개요[ | ]

리눅스 groupdel
/usr/sbin/groupdel
  • 그룹을 삭제하는 리눅스 명령어

2 실습 1[ | ]

[root@zetawiki ~]# useradd testuser
[root@zetawiki ~]# cat /etc/group | grep testuser
testuser:x:501:
[root@zetawiki ~]# cat /etc/passwd | grep testuser
testuser:x:501:501::/home/testuser:/bin/bash
[root@zetawiki ~]# groupdel testuser
groupdel: cannot remove the primary group of user 'testuser'
[root@zetawiki ~]# userdel testuser
[root@zetawiki ~]# groupdel testuser
groupdel: group 'testuser' does not exist

3 실습 2[ | ]

[root@zetawiki ~]# groupadd testgroup
[root@zetawiki ~]# cat /etc/group | grep testgroup
testgroup:x:502:
[root@zetawiki ~]# groupdel testgroup
[root@zetawiki ~]# cat /etc/group | grep testgroup

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}