When I try to delete the group pro1
(groupdel pro1
) it shows the error:
groupdel: cannot remove the primary group of user 'administrator'
And when I create new user from AD server, the user's default group is pro1
.
How can I fix this problem? Thanks.
Best Answer
This is documented in the man page. From
man groupdel
:So you need to make the primary group of user
administrator
something other thanpro1
and then you should be able to remove grouppro1
.Example: