Koozali.org: home of the SME Server

HELP! EMERGENCY - I DELETED SAMBA

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
HELP! EMERGENCY - I DELETED SAMBA
« Reply #30 on: July 05, 2007, 03:15:59 PM »
Out of curiosity, do your yum logs show what was erased ?

Code: [Select]
cat /var/log/yum/yum.log |grep Erased

or did they get erased as well?
Regards,
William

IF I give advise.. It's only if it was me....

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #31 on: July 05, 2007, 03:26:08 PM »
Nope...

Code: [Select]

Jul 03 12:12:18 Erased: e-smith-pptpd
Jul 03 12:12:18 Erased: e-smith-qmailanalog
Jul 03 12:12:18 Erased: e-smith-oidentd
Jul 03 12:12:18 Erased: e-smith-starterwebsite
Jul 03 12:12:18 Erased: e-smith-dynamicdns-dyndns
Jul 03 12:12:19 Erased: smeserver-support
Jul 03 12:12:19 Erased: e-smith-ldap
Jul 03 12:12:20 Erased: smeserver-qpsmtpd
Jul 03 12:12:21 Erased: e-smith-php
Jul 03 12:12:21 Erased: e-smith-packetfilter
Jul 03 12:12:22 Erased: e-smith-qmail
Jul 03 12:12:22 Erased: e-smith-dynamicdns-yi
Jul 03 12:12:22 Erased: e-smith-apache
Jul 03 12:12:23 Erased: e-smith-dynamicdns-tzo
Jul 03 12:12:23 Erased: e-smith-proxy
Jul 03 12:12:23 Erased: e-smith-radiusd
Jul 03 12:12:23 Erased: e-smith-horde
Jul 03 12:12:25 Erased: e-smith-samba
Jul 03 12:12:25 Erased: e-smith-flexbackup
Jul 03 12:12:25 Erased: e-smith-ntp
Jul 03 12:12:26 Erased: e-smith-viewlogfiles
Jul 03 12:12:26 Erased: smeserver-dar2
Jul 03 12:12:27 Erased: samba-common
Jul 03 12:12:28 Erased: e-smith-LPRng
Jul 03 12:12:29 Erased: e-smith-dynamicdns-dyndns.org
Jul 03 12:12:31 Erased: e-smith-base
Jul 03 12:12:33 Erased: smeserver-openvpn-bridge-fws
Jul 03 12:12:33 Erased: e-smith-email
Jul 03 12:12:33 Erased: smeserver-spamassassin
Jul 03 12:12:34 Erased: e-smith-pop3
Jul 03 12:12:34 Erased: e-smith-backup
Jul 03 12:12:34 Erased: e-smith-proftpd
Jul 03 12:12:34 Erased: e-smith-tinydns
Jul 03 12:12:35 Erased: samba-client
Jul 03 12:12:35 Erased: samba
Jul 03 12:12:36 Erased: e-smith-cd-utils
Jul 03 12:12:36 Erased: e-smith-quota
Jul 03 12:12:36 Erased: e-smith-portforwarding
Jul 03 12:12:36 Erased: e-smith-imp
Jul 03 12:12:37 Erased: e-smith-domains
Jul 03 12:12:37 Erased: smeserver-phpmyadmin
Jul 03 12:12:38 Erased: e-smith-ibays
Jul 03 12:12:38 Erased: smeserver-fetchmail
Jul 03 12:12:39 Erased: e-smith-ingo
Jul 03 12:12:39 Erased: smeserver-sme7admin
Jul 03 12:12:39 Erased: e-smith-hosts
Jul 03 12:12:40 Erased: e-smith-turba
Jul 03 12:12:40 Erased: e-smith-mysql
Jul 03 12:12:40 Erased: e-smith-netatalk


49 things. Amazing. All i did was deleting Samba... :-(

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #32 on: July 05, 2007, 03:40:38 PM »
piedie

> All i did was deleting Samba

It would have been safer to just use
rpm -e packagename

eg
rpm -e samba
...

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #33 on: July 05, 2007, 03:42:12 PM »
piedie

> 49 things. Amazing.

So have you now confirmed with
rpm -qa packagename
that all those erased rpms are now reinstalled ?
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #34 on: July 05, 2007, 03:42:28 PM »
Yes, I reinstalled all those things.

Yes, I get that now. In the first place i did not even want to remove Samba. I was sleeping and stupid, I wanted to remove cups.

But whatever. Lets fix this!

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #35 on: July 05, 2007, 03:56:17 PM »
piedie

> Yes, I reinstalled all those things.

Have you done a
signal-event post-upgrade
reboot
after reinstalling all the rpms ?
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #36 on: July 05, 2007, 03:58:19 PM »
Yes, I did.

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #37 on: July 05, 2007, 03:59:46 PM »
Yes, I did.

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
HELP! EMERGENCY - I DELETED SAMBA
« Reply #38 on: July 06, 2007, 06:07:23 AM »
>Any idea how to fix my users and other stuff again?

sounds like /home/e-smith/db/accounts was affected/deleted/blanked
do you have a recent backup of accounts
copy back and post-upgrade/reboot

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
HELP! EMERGENCY - I DELETED SAMBA
« Reply #39 on: July 06, 2007, 08:52:58 AM »
Quote from: "snoble"

do you have a recent backup of accounts
copy back and post-upgrade/reboot


Maybe see whats in there first.
Code: [Select]
db accounts show | grep user
Regards,
William

IF I give advise.. It's only if it was me....

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #40 on: July 06, 2007, 01:57:43 PM »
Code: [Select]
globalUP=userpanelglobal
    FirstName=global user
user-password=url


And for grep group:

Code: [Select]
UserAccess=wr-admin-rd-group
    UserAccess=wr-group-rd-everyone


Guess that is gone.... (?) Where to look in my backups?

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
HELP! EMERGENCY - I DELETED SAMBA
« Reply #41 on: July 06, 2007, 03:58:42 PM »
Quote from: "piedie"



Guess that is gone.... (?) Where to look in my backups?


As per snoble's post.
Regards,
William

IF I give advise.. It's only if it was me....

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #42 on: July 06, 2007, 05:14:15 PM »
Will try this next tuesday... Can't access the files from here.

Thank you, i'll keep you posted. Some same sort of file for the ibays maybe?

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #43 on: July 06, 2007, 11:36:37 PM »
piedie

All databases are located in
/home/e-smith/db/....

accounts is a main db with lots of information, including users & ibays & groups & pseudonyms

Depending how your backups are done, you will have a smeserver.tar.gz file or files or similar.
Unpack that file(s) and extract the accounts db
Keep a copy of the accounts db file currently on your system before you replace it with your backup copy, just in case.
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #44 on: July 10, 2007, 10:33:15 AM »
The backups were not okay. But: there were some files called *.rpmsave, eg accounts.rpmsave. Accounts was only 1 KB, accounts.rpmsave 8kb. I renamed all of the .rpmsave files to their original name, and it seems to work! All of my groups and users appear in the manager again!

How does this work?

Pieter