Koozali.org: home of the SME Server

5.6 usermod problems

Kirk Ferguson

5.6 usermod problems
« on: October 21, 2003, 07:06:07 AM »
Hello.  I'm running a fresh install of 5.6, with no mods.  I had run a server with this setup for the last year before a hack and crash forced a complete rebuild.  The problem is that usermod will lock up and use 99% cpu until I finally kill it when modifying the permissions on an ibay or adding users to a group.

I've read about the groups issues at  http://www.e-smith.org/bugs/index.php3?op=showBug&bugID=90 and elsewhere, but when I try this fix I get the same results exactly.

I only have five ibays, three added user groups, and around 100 users.

The messages log always shows an error related to groups.

Has anyone else experienced this problem?  I've had no problems like this on the three other servers I run with SME 5.6.  

Kirk

Kirk Ferguson

Re: 5.6 usermod problems
« Reply #1 on: October 21, 2003, 07:29:29 AM »
Also, I notice that the correct users for the group I'm trying to modify are in /home/e-smith/accounts.

As a temporary solution, can I just add these users to /etc/group and /etc/gshadow manually, or do other changes need to happen as well?

The group exists in these files, but has none of the users I needed:

# grep 'nursing' /etc/group
nursing:x:5002:admin,www

# grep 'nursing' /etc/gshadow
nursing:!::admin,www

Thanks,

Kirk

Jon Blakely

Re: 5.6 usermod problems
« Reply #2 on: October 21, 2003, 01:00:04 PM »
Kirk,

Can you post the error message .

Jon

Kirk Ferguson

Re: 5.6 usermod problems
« Reply #3 on: October 21, 2003, 07:53:21 PM »
Here's a sample from the messages log.  Looks to me like everything runs except S15group-modify-unix.  I get the same results from the server manager and command line.

----------------------------------------------------------------------------------------------------

Oct 20 20:06:55 webmail e-smith[14730]: Processing event: group-modify nursing
Oct 20 20:06:55 webmail e-smith[14730]: Running event handler: /etc/e-smith/events/group-modify/S15group-modify-unix
Oct 20 20:18:17 webmail e-smith[14730]: Failed to modify supplementary group list for aimeehaskins.
Oct 20 20:18:17 webmail e-smith[14730]: S15group-modify-unix=action|Event|group-modify|Action|S15group-modify-unix|Start|1066702015 880294|End|1066702697 805765|Elapsed|681.925471|Status|7424
Oct 20 20:18:17 webmail e-smith[14730]: Running event handler: /etc/e-smith/events/group-modify/S20conf-httpd-admin
Oct 20 20:18:18 webmail e-smith[14730]: S20conf-httpd-admin=action|Event|group-modify|Action|S20conf-httpd-admin|Start|1066702697 805980|End|1066702698 178846|Elapsed|0.372866
Oct 20 20:18:18 webmail e-smith[14730]: Running event handler: /etc/e-smith/events/group-modify/S20email-update-group
Oct 20 20:18:18 webmail e-smith[14730]: S20email-update-group=action|Event|group-modify|Action|S20email-update-group|Start|1066702698 179017|End|1066702698 320655|Elapsed|0.141638

Kirk

Kirk Ferguson

Re: 5.6 usermod problems - gets worse
« Reply #4 on: October 21, 2003, 08:50:44 PM »
Ok, I've tried to apply update 5 to this server, and guess what.  The same problem occurs.  When I do signal-event post-upgrade, usermod goes to 99% cpu usage and the event never completes. The server is now sitting at 99% cpu after two hours.

The last messages entry is:

Oct 21 07:30:38 webmail e-smith[15724]: Running event handler: /etc/e-smith/events/post-upgrade/S05init-accounts

So I guess I'll be testing my backup2ws disaster recovery set sooner that I expected...

Has anyone else had these problems?  Again, this is a stock install, with no contribs.

Kirk

Charlie Brady

Re: 5.6 usermod problems - gets worse
« Reply #5 on: October 22, 2003, 12:11:23 AM »
Kirk Ferguson wrote:

> Ok, I've tried to apply update 5 to this server, and guess
> what.  The same problem occurs.  When I do signal-event
> post-upgrade, usermod goes to 99% cpu usage and the event
> never completes. The server is now sitting at 99% cpu after
> two hours.

Sounds like a bug to me. All suspected bugs (i.e. all malfunctions which are not hardware failures) should be reported to smebugs@mitel.com.

Charlie

Kirk Ferguson

Re: 5.6 usermod problems - gets worse
« Reply #6 on: October 22, 2003, 12:57:39 AM »
I'll send a summary of the problem in to bugs.  I rebooted the server and tried again.  This time the post-upgrade event completed ok, but groups and ibay permissions are still broken.  Usermod still goes to 99% cpu, and the server-manager page goes blank.  

The bugs page shows that the groups panel problem was fixed in 5.6U2, but I sure can't seem to create a simple group.  The entries get added to passwd, shadow, gshadow, group and e-smith/accounts, but the username only exists in e-smith/accounts.

Any suggestions that I might try?

Kirk