5

I tried to create the svn user in my server,and I create a new group svn and add the current user maven to the group svn.

sudo groupadd svn
sudo chgrp svn /usr/local/svn/repos
sudo usermod -a -G svn maven

Now I tried to remove subversion, and delete the groups.

Then I used:

sudo groupdel svn

When I tried to find the groups for my current user using:

groups

I got the messages:

maven@mac:/usr/local$ groups

maven adm cdrom sudo dip plugdev lpadmin sambashare vboxusers groups: cannot find name for group ID 1001
1001

How can I fix this?

2

1 Answer 1

1

When you delete a group, all the users should be removed from the group as well when the command is called. You also have to log out and then log back in for new groups (or deleted groups) to show up when 'groups' is called.

1
  • similarly when you delete a user with sudo deluser someuser its own group with matching name also gets deleted Jan 9, 2017 at 21:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .