Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: vesko on October 01, 2004, 04:49:48 PM

Title: usermod 99% cpu
Post by: vesko on October 01, 2004, 04:49:48 PM
when i do a post-upgrade the proces goes on forever, and the i see the "usermod" i taking all the cpu time! The same happens when i add a user/group/ibay through the server manager!
i see the template system is not that complex but can it brake?
no modifications have been done apart from many installed contribs and all the updates.
This is a server I can't afford to stop, as it has 3 mail domains and a groupware and many other thing so will appreciate any help.
Thanks
Title: Re: usermod 99% cpu
Post by: CharlieBrady on October 02, 2004, 12:16:43 AM
Quote from: "vesko"
when i do a post-upgrade the proces goes on forever, and the i see the "usermod" i taking all the cpu time! The same happens when i add a user/group/ibay through the server manager!
i see the template system is not that complex but can it brake?
no modifications have been done apart from many installed contribs and all the updates.
This is a server I can't afford to stop, as it has 3 mail domains and a groupware and many other thing so will appreciate any help.
Thanks


If usermod is using 99% CPU, then there is a bug in usermod. It's as simple as that - and has nothing to do with templates or any SME server specific code. We've seen a number of bugs in the shadow-utils package, triggered by large numer of users, groups, or number of users in a group. I'd suggest you report the problem here in the Bug Tracker. You could also report it in RedHat's bugzilla (although they may not be interested in such a problem with Rh7.3).
Title: usermod 99% cpu
Post by: kirkf on October 03, 2004, 02:56:56 AM
Have you made any changes to your passwd, group or shadow files other than with the server manager?  I had a similar problem, and eventually found that an extra colon was in one line of /etc/shadow.  I never did figure out how it got there...

I finally found it using the pwck utility, if I remember correctly.

Kirk
Title: thanks kirkf
Post by: vesko on October 04, 2004, 10:30:28 AM
Thans Kirkf
The pwck found a line in /etc/shadow that stands for already deleted acaunt. Strangely the reccord for that acount stayed in the file.
Thanks again
Regards