Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: snig64 on September 09, 2005, 03:04:29 AM

Title: user-deleted problem [other forum posts aren't working]
Post by: snig64 on September 09, 2005, 03:04:29 AM
Error: the account "jason" can't be created because there is already a system account of that name.

I have already read:
http://forums.contribs.org/index.php?topic=7974.msg29632#msg29632
http://forums.contribs.org/index.php?topic=7974.msg29632#msg29632

I have done
/sbin/e-smith/db accounts delete jason
and rebooted also.

Still cannot add username

SME Server 6.0beta2 ... ran yum update 09/08/05 (today)
added lots of pacakges and installed via
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: raem on September 09, 2005, 11:18:21 AM
snig64

> SME Server 6.0beta2

Do you really mean version 6 beta 2, if so update immediately.
Perhaps you mean sme 7beta2 ?

Try deletimng the entry directly from the accounts db
For sme 6
/home/e-smith/accounts
or
for sme7
home/e-smith/db/accounts

For sme 7 beta2 problems please report to the sourceforge bugs database
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: snig64 on September 09, 2005, 03:30:19 PM
Quote from: "RayMitchell"

Do you really mean version 6 beta 2, if so update immediately. Perhaps you mean sme 7beta2 ?


No, it is six (6) beta 2. I just took over the IT job. Will it upgrade to 6.0.1 or 7.0 without having to reinstall? I have ran yum update, so that should help some in that problem.

Quote from: "RayMitchell"

Try deletimng the entry directly from the accounts db
For sme 6 /home/e-smith/accounts


I tried that, also. It is not located there.
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: CharlieBrady on September 09, 2005, 04:45:44 PM
Quote from: "RayMitchell"

Try deletimng the entry directly from the accounts db
For sme 6
/home/e-smith/accounts
or
for sme7
home/e-smith/db/accounts


No, don't do that. "sbin/e-smith/db accounts delete jason" is correct in both versions.
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: CharlieBrady on September 09, 2005, 04:48:19 PM
Quote from: "snig64"
Error: the account "jason" can't be created because there is already a system account of that name.


There is your answer. There is already an account "jason". Presumably that's because you added it before, and haven't deleted it. If you know why the account "jason" is there, and really want to get rid of it (perhaps to re-add properly), then you can do:

userdel -r jason

Do "man userdel" to find out what userdel does.
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: snig64 on September 09, 2005, 08:51:52 PM
Quote from: "CharlieBrady"
userdel -r jason


That didn't work either. I finally managd to create the user, so bookmark this post if needed.

Do the following:
rm -rf /var/spool/mail/jason

Edit the following files:
/etc/passwd (delete jason)
/etc/shadow (delete jason)
/etc/group (delete jason and delete jason from shared:::)
/etc/gshadow (delete jason and delete jason from shared:::)
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: CharlieBrady on September 09, 2005, 10:08:00 PM
Quote from: "snig64"
Quote from: "CharlieBrady"
userdel -r jason


That didn't work either.


What happened when you tried?

Quote

Edit the following files:
/etc/passwd (delete jason)
/etc/shadow (delete jason)
/etc/group (delete jason and delete jason from shared:::)
/etc/gshadow (delete jason and delete jason from shared:::)


That's rather a dangerous thing to do. There's no need to edit those precious files. There are good safe tools for editing those files - useradd, usermod, userdel, groupad, groupmod, groupdel. I'm sure there's an easy safe combination of those files which would have worked just fine.
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: snig64 on September 10, 2005, 07:58:55 AM
Quote from: "CharlieBrady"

What happened when you tried?


It told me user not found.

Quote
That's rather a dangerous thing to do. There's no need to edit those precious files. There are good safe tools for editing those files - useradd, usermod, userdel, groupad, groupmod, groupdel. I'm sure there's an easy safe combination of those files which would have worked just fine.


group del jason said there was no group named jason. I found it and deleted it manually.

Can I use SME 7 to upgrade the 6.0 or will I have to do a wipe and reinstall?
Title: Re: user-deleted problem [other forum posts aren't working]
Post by: raem on September 10, 2005, 02:11:03 PM
snig64

> Can I use SME 7 to upgrade the 6.0 or will I have > to do a wipe and reinstall?

sme 7 is still a beta release and bugs are still being found, so you should not use that on a production server. Upgrade from 6.x is supported, but as sme 7 is still a beta 2 release, the upgrade may not work in all aspects just yet.

You would be safely able to upgrade to sme Mitel 6.0 (final) or sme 6.0.1 or even sme 6.5 without needing to do a fresh install. You should check that any add on contribs you have installed are compatible with those versions (especially 6.5). If they are not compatible then uninstall the contribs first and look for compatible versions. Probably anything you have running on sme 6beta2 should work on sme 6.0.x final. Some contribs needed upgrading to run on sme 6.5.
Title: user-deleted problem [other forum posts aren't working]
Post by: osiris9510 on February 09, 2006, 08:23:55 PM
I know this is an old post but for anyone whos still pretty green, don't manually edit the passwd, shadow, gshadow, and groups files!.....Not unless you LIKE doing google searches for more than 3 hours. :)