LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-07-2012, 09:45 AM   #1
james2k
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
services wont start


hi

not sure if you can help, our server got hacked and del all our data, i have done a restore but none of the services start.

i just get this error

Failed to start the "httpd" service.
Cannot start/stop/restart service: Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
[FAILED]


Failed to start the "sshd" service.
Cannot start/stop/restart service: Starting sshd: /usr/sbin/sshd: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
[FAILED]



can anyone help me? sending me mad.
 
Old 04-07-2012, 09:50 AM   #2
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 142

Rep: Reputation: 33
Looks like your security related libraries have been deleted or corrupted. You need to find which packages in your distribution provide the missing packages and reinstall them. A little googling with libssl and libcrypto should help you figure this out in relation to your distro.
 
Old 04-07-2012, 09:55 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
you may reinstall these modules, just try
#yum install libssl.so.6
 
Old 04-07-2012, 12:33 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by james2k View Post
our server got hacked and del all our data, i have done a restore but none of the services start.
If your servers security got compromised then a restore might expose the same vulnerabilities or reload leeched credentials. I suggest you assess if a restore is in order (in a lot of cases you're better off installing from scratch, also see the historical CERT Steps for Recovering from a UNIX or NT System Compromise) else you need to ensure the restored machine is functionally complete (and I guess it wasn't or else you wouldn't be missing libraries), all software is up to date, new passwords are issued for all accounts (including machines the perpetrator could have had access to), beef up on auditing and access restrictions and test no vulnerabilities are exposed.
 
Old 04-07-2012, 01:01 PM   #5
james2k
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I have tried to reinstall them both but no luck.

I can only get into repair mode as it is a VPS and using the commands there as SSH FTP don’t work so I can’t pull my files from the system.

[root@s153 repair]# yum install libcrypto..so.6
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 662, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 502, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 232, in populateSack
self.doSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 79, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/fastestmirror.py", line 181, in postreposetup_hook
all_urls = FastestMirror(all_urls).get_mirrorlist()
File "/usr/lib/yum-plugins/fastestmirror.py", line 333, in get_mirrorlist
self._poll_mirrors()
File "/usr/lib/yum-plugins/fastestmirror.py", line 376, in _poll_mirrors
pollThread.start()
File "/usr/lib64/python2.4/threading.py", line 416, in start
_start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

anyone got any ideas?

The restore also fails, but i think this is due to the services unable to start?
 
Old 04-07-2012, 04:12 PM   #6
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
Originally Posted by james2k View Post
I have tried to reinstall them both but no luck.

I can only get into repair mode as it is a VPS and using the commands there as SSH FTP don’t work so I can’t pull my files from the system.
anyone got any ideas?
The restore also fails, but i think this is due to the services unable to start?
Please reread, and preferably heed the advice given to you by unSpawn.
 
Old 04-08-2012, 03:41 AM   #7
rajkumar.m
LQ Newbie
 
Registered: May 2010
Posts: 18

Rep: Reputation: 12
#yum clean all
#yum list all | grep -i -E 'libssl|libcryp'

first check whether the file is present in the repository.

As far as i think their might be some problem in the repository itself. Download appropriate
package from http://rpm.pbone.net/ and try.






--------------------------------------------------------------
If you want some thing don't wait go and get it.
http://thetechnicalstuff.com
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where do services start hywaydave *BSD 2 02-17-2005 06:25 PM
start services ust Linux - General 1 11-09-2004 03:34 AM
services wont start, nor service-config birras Fedora 3 10-24-2004 08:22 PM
Start/stop services on start-up koyi Slackware 5 08-04-2003 08:20 AM
Start up services tfrye Linux - General 2 04-17-2001 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration