samba stoped working :(

Posted on 2008-11-10
Last Modified: 2013-12-16
when I try do something with samba I got error this message

root@srv1:/etc/rc.d# /etc/rc.d/rc.samba start
Starting Samba:  /usr/sbin/smbd -D
/usr/sbin/smbd: error while loading shared libraries: cannot open shared object file: No such file or directory
                 /usr/sbin/nmbd -D
/usr/sbin/nmbd: error while loading shared libraries: cannot open shared object file: No such file or directory

It is file server in work... Windows users are taking files from this lan server... I gues that here is redhal linux!
I work here only some month and in Linux I`m beginner...

Can some body please help me?!

Question by:lamzaks
    LVL 2

    Expert Comment

    What distribution do you use? Maybe some automated update procedure failed and removed libcap package?
    LVL 6

    Expert Comment

    see if you have any libcap installed.
    rpm -q --provides libcap
    which distro/version
    LVL 1

    Author Comment

    eem... I dont konw witch distribution I have... I didn`t made this system.. admin before me made that, can not find him

    when I wrote rpm -q --provides libcap I got this error

    rpm: error while loading shared libraries: cannot open shared object file: No such file or directory

    P.S. how to detect distribution
    LVL 2

    Accepted Solution

    Please check if everything is ok with your hardware to many libraries are missing (at least libcap and libbeecrypt). You will find some usefull information by reading /var/log/messages or executing dmesg

    How to detect distribution, thats good question :), please try:
    cat /etc/redhat-releasecat /etc/debian_versionls /etc | grep release

    Depending on distribution you should find some release information.
    LVL 6

    Expert Comment

    uname -a
    Will give you some info.  
    If it's debian things will be a tad different. You'll use apt-get to check, update, or install packages.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now