--- loncom/lcuserdel 2000/10/29 19:36:54 1.6 +++ loncom/lcuserdel 2000/10/29 22:20:43 1.8 @@ -95,6 +95,8 @@ my $safeusername=$1; # By using the system userdel command: # Remove entry from /etc/passwd if it exists # Remove entry from /etc/groups if it exists +# I surround with groupdel command to make absolutely sure the group definition disappears. +system('/usr/sbin/groupdel 2>/dev/null',$safeusername); # ignore error message system('/usr/sbin/userdel 2>/dev/null',$safeusername); # ignore error message system('/usr/sbin/groupdel 2>/dev/null',$safeusername); # ignore error message