Koozali.org: home of the SME Server

HELP! EMERGENCY - I DELETED SAMBA

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« on: July 03, 2007, 12:53:04 PM »
Hi!

Sleepy as I sometimes am, and trying to fix a printer error, i wanted to reinstall cups. So... I selected Samba-common, Samba Client and Samba in the Software Installer, and clicked Uninstall.

Now, almost nothing works. I cannot acces the servermanager or the e-mail.

I did only delete those three things, nothing else. I think it was version 0301014e12.2, that is what I wrote down before i deleted it.

WHAT TO DO? PLEASE HELP ME! I know how stupid this is, but I do not know what to do...

I found this: http://mirror.contribs.org/smeserver/contribs/gzartman/Beta/Samba3/

Can I install that? Will it work?

Thank you for a fast answer,

Pieter

Offline ldkeen

  • *
  • 403
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #1 on: July 03, 2007, 01:00:54 PM »
Hi Pieter,
First off DONT PANIC. Do you have local access to the machine? If so pull up a console, login as root and do the following:
#yum install samba samba-common samba-client
#signal-event post-upgrade
#signal-event reboot
Regards, Lloyd

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #2 on: July 03, 2007, 01:07:55 PM »
Ok, thank you for helping me so soon!

I get this error: (something with repositories?)

Code: [Select]
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up install process
Setting up repositories
http://sme.dungog.net/BLAH BLAH BLAH: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror
Cannot open/read repomd.xml file for repository: dungogMembers
failure: repodata/repomd.xml from dungogmembers: [Errno 256] No more mirrors to try
failure: repodata/repomd.xml from dungogmembers: [Errno 256] No more mirrors to try

Offline ldkeen

  • *
  • 403
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #3 on: July 03, 2007, 01:50:08 PM »
Pieter, Disable Dungog Members repo and try again:
#yum --disablerepo=dungogMembers install samba samba-common samba-client
Lloyd

Offline Stefano

  • *
  • 10,850
  • +2/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #4 on: July 03, 2007, 01:56:35 PM »
Quote from: "piedie"
Ok, thank you for helping me so soon!

I get this error: (something with repositories?)

Code: [Select]
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up install process
Setting up repositories
http://sme.dungog.net/BLAH BLAH BLAH: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror
Cannot open/read repomd.xml file for repository: dungogMembers
failure: repodata/repomd.xml from dungogmembers: [Errno 256] No more mirrors to try
failure: repodata/repomd.xml from dungogmembers: [Errno 256] No more mirrors to try


disable dungog repository

Code: [Select]

yum --disablerepo=dungog install samba samba-common samba-client


HTH

Ciao
Stefano

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #5 on: July 03, 2007, 02:00:40 PM »
Same error comes up: first dungog, when I disable both dungog and dungogmembers, sme error for smeaddons (= failure in name resolutions)

But it seems to be getting worse; I cannot signal-event. (Command doesn't exist) When i try 'reboot' instead, it says: Cannot execute /etc/rc.d/rc.e-smith, then the systems halts, without rebooting.

It seems to be missing. At start up (turned the switch off and on again) it says the same, cannot execute rc.e-smith. And it says Cannot execute /etc/rc.d/rc.Quotacreate

Any idea? This is getting really messy, but all i did was deleting Samba....!

Now there is no acces possible from the network, not from internet to the server, no mail etcetera.

Thank you so much!

Offline ldkeen

  • *
  • 403
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #6 on: July 03, 2007, 02:17:14 PM »
Pieter
Quote
I cannot signal-event. (Command doesn't exist)

Probably should be using the full path anyway, which is:
#/sbin/e-smith/signal-event reboot
Quote
When i try 'reboot' instead

Try to avoid doing this if you can.
Quote
sme error for smeaddons (= failure in name resolutions)

Is your network up and running? Can you ping external sites? If your network is going try this:
#/usr/bin/yum --disablerepo=* --enablerepo=base --enablerepo=smeos install samba samba-common samba-client
Lloyd

Offline byte

  • *
  • 2,183
  • +2/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #7 on: July 03, 2007, 02:23:18 PM »
Hmm seems you have done more than delete/remove the samba rpms, I think your best bet is to grab your SME Server boot cd and when you boot off from cd it then ask's you to format or upgrade existing SME Server installation, if you choose the upgrade existing SME Server installation it should put you back to a working state.

**Disclaimer**
I've never tried myself to upgrade existing installation but can't see why it wouldn't work. So it's down to you to make sure you have backups if anything goes wrong.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #8 on: July 03, 2007, 02:25:33 PM »
/sbin/e-smith/signal-event post-upgrade works fine (so thanks)

But when i try /sbin/e-smith/signal-event reboot this error comes up: Can't open directory /etc/e-smith/events/reboot

And no, I cannot ping: Network is unreachable.

Any idea? Is this because of the Cannot execute /etc/rc.d/rc.e-smith at start-up? Or any other idea? I'll check networkcables, although it seems to me that it is not something hardware...

Thank you so much for helping me, i got a full company here all trying to kill me. So thanks for avoiding that...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #9 on: July 03, 2007, 02:27:15 PM »
BTW: Server is in server-only mode. The internetconnection is still alive (if you read this, it is :-)) And the router-LED lights green, so there must be some kind of connection between server and router.

Pieter

Offline ldkeen

  • *
  • 403
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #10 on: July 03, 2007, 02:31:41 PM »
Pieter,
You must have internet connection somewhere (in order to post here  :D ). Can you head over to http://mirror.contribs.org/smeserver/releases/7.1/smeupdates/i386/RPMS/ and grab the three samba packages (you are running 7.1.3 aren't you?), then dump them on a CD or memory stick and copy them to the server. Then from the directory where you copied them to execute this:
#/usr/bin/yum localinstall *.rpm
#/sbin/e-smith/signal-event post-upgrade
#/sbin/e-smith/signal-event reboot

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #11 on: July 03, 2007, 02:34:53 PM »
Have no idea what to backup now that i do not have my server-manager to help me. Files and mail i can found, but important settings? How can i do this if i need to use the upgrade. I'll wait with that to see if anybody has any other options, otherwise i'll try.

If somebody want to be helpdesk/hotline, feel free (+3136 52 161 19), i'll even pay you, that is how important this is!

Offline byte

  • *
  • 2,183
  • +2/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #12 on: July 03, 2007, 02:45:16 PM »
Quote from: "piedie"
Have no idea what to backup now that i do not have my server-manager to help me. Files and mail i can found, but important settings? How can i do this if i need to use the upgrade.


When upgrading via the CD if you choose the upgrade path it will presere your configuration data. If you haven't done a back up and would like to you will need to back up the following...

/etc/group
/etc/gshadow
/etc/passwd
/etc/shadow
/etc/smbpasswd
/etc/samba/secrets.tdb
/etc/smbpasswd
/etc/sudoers
/home/e-smith/
/etc/e-smith/templates-custom/
/etc/e-smith/templates-user-custom/
/root
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #13 on: July 03, 2007, 04:19:37 PM »
Okay. I now am formatting an usb drive to backup, after that i will try the cd-rom upgrade. Any idea what it will do to for instance eGroupware? And other contribs? Maybe some good hints?

Thank you, i'll keep you posted.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #14 on: July 03, 2007, 06:05:35 PM »
Quote from: "piedie"
/sbin/e-smith/signal-event post-upgrade works fine (so thanks)

But when i try /sbin/e-smith/signal-event reboot this error comes up: Can't open directory /etc/e-smith/events/reboot


In that case, you have more missing that samba rpms. You are missing e-smith-base (or at least some of the files from it).

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #15 on: July 03, 2007, 07:59:11 PM »
Well, I did an upgrade from CD-ROM.

It works quite okay, I can use signal-event again, the booting takes longer (it is starting all the services, i guess e-smith.d is back again.

But it still doesnt work. That is: all my users are gone, I cannot reach the mailserver or the server from outside, the server manager (internally connected) doesn't work (it does when I use the browser in the console) and lots of other things are gone, yet the files /home/e-smith/files/users/John are all still there, as well as the Mailbox files.

I did backup all of the above folders. What can I do? I am scared that when I create a new user John, the old ones files are deleted. Please help! Thank you again!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: HELP! EMERGENCY - I DELETED SAMBA
« Reply #16 on: July 03, 2007, 08:04:02 PM »
Quote from: "piedie"

Sleepy as I sometimes am, and trying to fix a printer error, i wanted to reinstall cups.


cups is not installed as part of SME server. Your server is obviously customised, so your post is off-topic in this forum.

Offline pfloor

  • ****
  • 889
  • +1/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #17 on: July 03, 2007, 10:37:55 PM »
Quote from: "CharlieBrady"
Quote from: "piedie"
/sbin/e-smith/signal-event post-upgrade works fine (so thanks)

But when i try /sbin/e-smith/signal-event reboot this error comes up: Can't open directory /etc/e-smith/events/reboot


In that case, you have more missing that samba rpms. You are missing e-smith-base (or at least some of the files from it).

You can say that again!

FYI:
# yum remove samba samba-common samba-client
Removes an additional 40 packages due to dependencies (mostly "e-smith-xxx and 3 smeserver-xxx packages).

I would assume that the manager panel will do the same without the "Is this ok [y/N]:" prompt.

I think this is a bit dangerous, I'll open a bug report.
In life, you must either "Push, Pull or Get out of the way!"

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #18 on: July 04, 2007, 12:51:20 AM »
Probably that was what went wrong, then.

Any idea how to fix my users and other stuff again?

And sorry for posting it here, feel free to move the topic, I was just in panic.... And still am, a little bit.

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #19 on: July 04, 2007, 01:25:12 AM »
piedie

Here is the new wiki, go and read everything there.
http://wiki.contribs.org/Main_Page

See this post re the correct repositories to have enabled.
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled

Go to server manager and disable any additional repositories and ensure that ONLY those mentioned above are enabled ie
CentOS - os
CentOS - updates
SME Server - addons
SME Server - os
SME Server - updates

Then run
yum update
(either in server manager or at command prompt)
& ensure you run the Reconfigure option after that
or manually do
signal-event post-upgrade
reboot

Then test your machine again, is it still problematic.

Also what history does your machine have, ie is it a clean install of sme 7.1, was it a sme7.0 install that has been upgraded, was it a sme 6.x upgraded.

What other add ons have you installed, what other tweaks or modification or customization (eg custom-templates) have you done.

Importantly, was this machine working in all respects prior to your attempted cups install ?
What was the printing problem you were having ?
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #20 on: July 04, 2007, 03:50:12 PM »
Quote
Then run
yum update
(either in server manager or at command prompt)
& ensure you run the Reconfigure option after that
or manually do
signal-event post-upgrade
reboot


No improvement. I still can't access the server-manager, still no users etcetera.

This server was a clean 7.1 install, about four months old. I did add some things, like Vacation messages, eGroupware, DAR2 and some other stuff. It is in server-only mode and acts as fileserver and mail server. A Linksys router is the gateway.

I did backup the folders as advised, and I guess that there must be something in there, for instance a user-list. See, the user folders and files are still there, but they do not exist when i access the manager trough the panel. Any ideas would be highly appreciated.

The machine was working great, before i removed samba, except for the printing problem. I don't know what it was, but i deleted the printer in de Manager and connected the printer to another PC. Works also fine.

Pieter

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #21 on: July 04, 2007, 04:09:27 PM »
Now, when I try to access the console (by logging in as 'admin') it doesn't come up any more. I see a screen full of text, but before I can read anything the page cleares to show the prompt again. I CAN login as root, however.

???

Also, when booting up, irqbalace says [FAILED]

Maybe this helps...

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #22 on: July 04, 2007, 04:21:38 PM »
piedie

pfloor has given you a good clue re what (probably) needs fixing.

Here is the list of rpms that my 7.1.3 system is going to remove when I run
yum remove samba samba-common samba-client
from the command prompt.
Check to see if those rpms are installed on your live server.
eg
rpm -qa e-smith-base
etc etc
Install them again if necessary.
Do a signal-event post-upgrade
reboot
after installing any missing rpms


Removing:
 samba                   i386       3.0.10-1.4E.12.2  installed          24 M
 samba-client            i386       3.0.10-1.4E.12.2  installed         6.2 M
 samba-common            i386       3.0.10-1.4E.12.2  installed          13 M
Removing for dependencies:
 e-smith-LPRng           noarch     1.14.0-4.el4.sme  installed          50 k
 e-smith-apache          noarch     1.2.0-8.el4.sme  installed          45 k
 e-smith-backup          noarch     1.14.0-12.el4.sme  installed         107 k
 e-smith-base            noarch     4.18.0-25.el4.sme  installed         596 k
 e-smith-domains         noarch     1.4.0-5.el4.sme  installed          42 k
 e-smith-dynamicdns-dyndns  noarch     1.4.0-3.el4.sme  installed          19 k
 e-smith-dynamicdns-dyndns.org  noarch     1.4.0-4.el4.sme  installed          19 k
 e-smith-dynamicdns-tzo  noarch     1.4.0-3.el4.sme  installed          18 k
 e-smith-dynamicdns-yi   noarch     1.4.0-3.el4.sme  installed          18 k
 e-smith-email           noarch     4.16.0-18.el4.sme  installed         214 k
 e-smith-flexbackup      noarch     1.10.0-3.el4.sme  installed          31 k
 e-smith-horde           noarch     1.13.0-19.el4.sme  installed          84 k
 e-smith-hosts           noarch     1.14.0-6.el4.sme  installed          74 k
 e-smith-ibays           noarch     1.2.0-4.el4.sme  installed          69 k
 e-smith-imp             noarch     1.13.0-8.el4.sme  installed          64 k
 e-smith-ingo            noarch     1.1-5.el4.sme    installed          31 k
 e-smith-ldap            noarch     4.12.0-5.el4.sme  installed          46 k
 e-smith-mysql           noarch     1.12.0-11.el4.sme  installed          29 k
 e-smith-netatalk        noarch     1.14.0-3.el4.sme  installed          23 k
 e-smith-ntp             noarch     1.16.0-9.el4.sme  installed          57 k
 e-smith-oidentd         noarch     1.2.0-3.el4.sme  installed          20 k
 e-smith-packetfilter    noarch     1.18.0-2.el4.sme  installed          45 k
 e-smith-php             noarch     1.12.0-3.el4.sme  installed          24 k
 e-smith-pop3            noarch     1.2.0-3.el4.sme  installed          23 k
 e-smith-portforwarding  noarch     1.2.0-2.el4.sme  installed          31 k
 e-smith-pptpd           noarch     1.12.0-6.el4.sme  installed          28 k
 e-smith-proftpd         noarch     1.12.0-6.el4.sme  installed          31 k
 e-smith-proxy           noarch     4.14.0-4.el4.sme  installed          32 k
 e-smith-qmail           noarch     1.10.0-11.el4.sme  installed          44 k
 e-smith-qmailanalog     noarch     1.12.0-2.el4.sme  installed          27 k
 e-smith-quota           noarch     1.10.0-5.el4.sme  installed          77 k
 e-smith-radiusd         noarch     1.0.0-12.el4.sme  installed          67 k
 e-smith-samba           noarch     1.14.0-26.el4.sme  installed          61 k
 e-smith-starterwebsite  noarch     1.0.0-2.el4.sme  installed          30 k
 e-smith-tinydns         noarch     1.0.0-6.el4.sme  installed          40 k
 e-smith-turba           noarch     1.7.0-12.el4.sme  installed          39 k
 e-smith-viewlogfiles    noarch     1.8.0-2.el4.sme  installed          17 k
 smeserver-dar2          noarch     0.0.1-1dmay      installed          76 k
 smeserver-ezmlm-web     noarch     1.1.2-11         installed          49 k
 smeserver-proxypass     noarch     0.0.3-1          installed          28 k
 smeserver-qpsmtpd       noarch     1.2.1-32.el4.sme  installed          36 k
 smeserver-saco-qmHandle  noarch     1.3.1-1          installed          50 k
 smeserver-spamassassin  noarch     1.4.0-11.el4.sme  installed         6.5 k
 smeserver-support       noarch     1.6.0-32.el4.sme  installed          73 k
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #23 on: July 04, 2007, 04:56:27 PM »
I am missing over 22, like apache and php. I just installed it. Lets see....

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #24 on: July 04, 2007, 05:00:58 PM »
This is GREAT!

I can now access the server manager
eGroupware, including the settings is BACK!
I can e-mail using egroupware, but mail sent to the server is being bouced

Still, no users. Although they can log in at the server. Also, an (important ibay is gone, but the files and the folder is still there)

WORKING:

Manager, eGroupware (users can login, appointments still there), apache (webserver reachable)

NOT WORKING:

Users, email (using eGroupware i can see my mail, read it, but not send any), webmail (Horde, /webmail)

Offline pfloor

  • ****
  • 889
  • +1/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #25 on: July 05, 2007, 01:17:30 AM »
Did some testing.

"yum remove samba*" (or selecting the samba packages from the software installer) removes 43 packages however trying to recover by updating with the CD only restores 22 packages back.  You can try the following to re-install any missing packages:

Code: [Select]
# yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
NOTE: the above command is all on one line.
In life, you must either "Push, Pull or Get out of the way!"

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #26 on: July 05, 2007, 02:06:33 AM »
piedie

>...mail sent to the server is being bounced
> ....email (using eGroupware i can see my mail, read it, but not send any), webmail (Horde, /webmail)

What error message(s) are received ?
Also check the various log files to see what is happening.
Was email working correctly before you stuffed things up ?
Can you connect to your email accounts using a email client, can you send & receive using an email client ?


> ...no users. Although they can log in at the server.

Please be specific and provide details, what does "no users" really mean?
Do you mean you cannot see any Users in the server manager panel, but your users can in fact login with their original user names & passwords ?
What do you mean by "login at the server" ?
Can they login to attached workstations & webmail etc ?


> ...an (important ibay is gone, but the files and the folder is still there)

Again please be specific, ie what do you mean by "gone" ?
Do you mean the ibay name does not appear in the server manager panel, but in fact you can see the folder & files using the Linux command prompt ?

Can you access that ibay (& other ibays too) using Windows file sharing eg Windows Explorer ?
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #27 on: July 05, 2007, 02:09:22 PM »
You guys are the best, thanks for helping me!

Mail is now working again. I can connect using Thunderbird, or using eGroupware, mail sent to all of the users is being delivered okay. I can also send mail from inside the network or outside. It had to do with some mail-relay and security-settings.

Webmail (Horde) does not work. When booting the server I see some MySQL errors, when surfing to server/webmail i get this error: DB Error: connect failed

Quote
Do you mean you cannot see any Users in the server manager panel, but your users can in fact login with their original user names & passwords ?


That is exactely what I mean. When they do login (and I meant using one of the connected workstations) they can see their files. No files are missing.

Quote

Do you mean the ibay name does not appear in the server manager panel, but in fact you can see the folder & files using the Linux command prompt ?


You're good! That is exactely what i mean. But for one ibay (?). On a workstation surfing to \\Servername\basis it does not work. The files in /..../ibays/basis are still there though. I did create a new ibay, called New, and created a symbolic link to basis. This works, people can access New from their workstations, but this is a Duct-tape solution.

Also, all of my pseudonyms and groups are gone; i cannot see them in the manager, but they also do not work.

pfloor: I will try this. Thank you

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #28 on: July 05, 2007, 02:20:02 PM »
Quote from: "pfloor"
Did some testing.

"yum remove samba*" (or selecting the samba packages from the software installer) removes 43 packages however trying to recover by updating with the CD only restores 22 packages back.  You can try the following to re-install any missing packages:

Code: [Select]
# yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
NOTE: the above command is all on one line.


This was what i was missing after the 22 or so missing packages yesterday.

Code: [Select]
Installing: aspell-sv                  
  Installing: e-smith-dynamicdns-yi      
  Installing: e-smith-dynamicdns-dyndns.or
  Installing: smeserver-locale-sv        
  Installing: e-smith-dynamicdns-tzo

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #29 on: July 05, 2007, 02:52:57 PM »
And antoher funny thing: i tried to send a mail to somebody who left for holiday a week or two ago. His vacation-message did work! Though, in Vacations in the Manager it says: 'There are no users in your system'.

Thanks! Sorry for the three posts after each other, btw.

P

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

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #45 on: July 10, 2007, 11:11:29 AM »
piedie

> I renamed all of the .rpmsave files to their original name...
> All of my groups and users appear in the manager again!
> How does this work?

They were copies of the original database files made probably when the CD upgrade/install was done. Not sure why the accounts db got "emptied" though.
Lucky you had them hey !

I'd check your backup method, and the best way to check it is to do a full restore (to a test server of course).
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #46 on: July 10, 2007, 11:30:36 AM »
Yeah, we just bought ourselves an usb-disk.  What contrib would you advise to use it for backups? So that we can take it home everyday in case of fire in the building...

Thank you guys anyway for helping me this good!

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #47 on: July 10, 2007, 11:42:50 AM »
piedie

The console (login as admin or run console at the root prompt) has a backup to USB option, or install dar from dmay contrib area which will also backup to USB & is configurable & adds a servermanager panel.
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #48 on: July 10, 2007, 02:18:04 PM »
The USB does not work. It does not seem to recognize the drive, I cannot access it, can not mount it. It does not appear with fdisk -l.

Any idea? (Or should I open another topic?)

Offline byte

  • *
  • 2,183
  • +2/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #49 on: July 10, 2007, 09:20:39 PM »
Quote from: "piedie"
The USB does not work


If the USB option from the console does not work then please report to the bug tracker, remembering to give full server history and contribs installed. Thanks.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline shawnbishop

  • ****
  • 298
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #50 on: July 10, 2007, 10:36:43 PM »
Firstly before doing anything else, make a backup of the data

Then using lazy admin tools, do a lat-dump -d, whcih will create restore files of users etc....

Then start to mess around

Offline supersonico

  • *
  • 28
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #51 on: July 18, 2007, 10:31:09 PM »
This is the best feature of SME-Server.

(I miss FreeBSD package manager...  :cry: )

Yum Yum Yum....

(I'm fixing this manually)

Thanks to God an the virgin... and mr Evil and Superman....

I Work with the RAID option.

It will be a nice afternoon for me....
 :wink:

I'm an asshole.... (the backup.... the backup....)