Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: David Evans on November 15, 2001, 06:26:30 PM

Title: Oh oh, I reset the configuration...
Post by: David Evans on November 15, 2001, 06:26:30 PM
Eep!

I installed SME 5.0 last week, and have been rebuilding from scratch all the features I had added to the ESSG v4 server that I had been running for a couple of years. While adding smb_auth back in, I think I autocompleted on the wrong script in /sbin/e-smith/ and instead of expanding the template for the squid.conf, everything got reset. And I mean everything.

There are no ibays. There are no users. There are no network settings.

All the data is still there (fhe folders that the Ibays are based on are still there, emails are still being passed through the system as normal) but is there a quick way I can pick up on that?

Yours, feeling sheepish

Dave Evans
Title: Re: Oh oh, I reset the configuration...
Post by: David Brown on November 16, 2001, 12:05:41 AM
Well, you can try restoring account and configuration database files from a backup or a reinstallation floppy, if you have one.  Also, you could try /sbin/e-smith/signal-event post-upgrade, which seems to re-populate the accounts database with the user/group/ibay names and GID/UID's, but then you would have to *carefully* hand edit the file to set each user/group/ibay with the right information.  You can get an idea of what settings they need by making a test user/group/ibay and copying that format.  This is obviously a tedious procedure, but I don't know what else might work.
Title: Re: Oh oh, I reset the configuration...
Post by: Emiel on December 04, 2001, 12:14:37 PM
Oh oh I did the same, I got the e-smith server up and running again, accept the e-smith manager won't show my settings (user/group/i-bay etc) anymore.

I did the /sbin/e-smith/signal-event post-upgrade but the manager still does not show any results previously configured.

In David Browns suggestion he mentioned *carefully* editing a file, but which file?

Please help

Emiel
Title: Re: Oh oh, I reset the configuration...
Post by: David Evans on December 04, 2001, 01:46:26 PM
Ok, I did get this back, so it is not a complete disaster. The file you are looking for is /home/e-smith/accounts. Be careful, back it up before you change anything, etc, etc.

You are looking at where e-smith keeps a record of all the accounts. There are loads of system accounts, like qmail, squid, all that sort of thing. Leave them alone. The lines you are looking for look like this:

devans=existing|Gid|5001|Uid|5001

Now, go into the server manager and create an account that does not already exist (I used test). A line will be added to your accounts file, like this:

test=user|EmailForward|local|Gid|5002|City|test city|ForwardAddress||FirstName|test fname|PasswordSet|Yes|Phone|555-1212|Uid|5002|Street|Test|Company|test company|Dept|test|LastName|Test

Now you have to change all the "existing" users into this format, changing the Gid and Uid numbers for each line, and setting their names and address correctly. I had about 70 users, so it took me a couple of hours.

Now you have to do the same for Ibays and Groups (create temp ones, copy format to existing lines).

Oh, and you should also tattoo "Never do a post-install" on your knuckles, so you can see it when you are typing. I have.