LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2013, 07:33 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Rep: Reputation: Disabled
Samba Server - nmb is dead but pid file exists HELP PLEASE


I set up a Samba server on CentOS 6.4 and everything is working. However, I need to go into the network tab and type //192.168.x.x in order to connect to it, it doesn't show up automatically in my network tab like other PCs do, why is this?

Optional question that isnt as important, how would I get a printer to show up? Do I need to first have a printer added on the computer thats running Samba server and thats it? Thanks.

Last edited by Altiris; 05-25-2013 at 12:01 PM.
 
Old 05-24-2013, 08:52 PM   #2
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Alright so I did some research and I found out that I had to enable WINS Support in the smb.conf file and then also local master (by enable I mean remove the . However, when I try running the nmb service it says it starts however when I do service nmb status I get "nmb is dead but pid file exists". How can I fix this?
 
Old 05-25-2013, 12:03 PM   #3
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Bump.
 
Old 05-25-2013, 01:11 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
First, verify that the nmb process is dead. (pgrep nmb should not return anything.)
The go to /var/run/ and delete the nmb.pid file for the dead process. (Did your Samba abort?)

You should also check /var/lock/* to see if there are and orphaned locks in it. (Unlikely, but it can't hurt.)
 
Old 05-25-2013, 05:24 PM   #5
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
I deleted the nmbd.pid file and I try running it again and I get the same problem, Samba did not abort. Also I noticed that the pid file says its nmbd.pid however the service is just nmb. Weird right?
 
Old 05-25-2013, 09:29 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Which version of Samba are you using? Is it up to date?
 
Old 05-26-2013, 10:05 AM   #7
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
I'm using whatever Samba version is the CentOS main repositories...which means its probably really old but also really stable or whatever. Should I upgrade or something?
 
Old 05-26-2013, 10:44 AM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
CentOS has both Samba 3 and Samba 4 in their repositories. In my (limited) experience, Samba 4 is less likely to have problems, and has more "functionality" then Samba 3.

They also have yumex in the "Extras" repository which is a Python program that provides a nice GUI for for yum. If you have that installed, checking your version is fairly easy, although - for finding just one package's version is as simple as, e.g., yum list samba*.

Note: I don't use CentOS, nor much of Samba. I only replied here because nobody else had. (Sometimes some activity prompts more activity. )
 
Old 05-26-2013, 03:14 PM   #9
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Thanks for replying, I just did a fresh install of CentOS due to complications (the network icon on the gnome panel disappeared completely, I've also noticed that icons on the gnome panel tend to get swapped around if you log in as anther user or the root user, they need to check on gnome).

Anyways, I will download that GUI thing you recommended and I will try and get Samba 4, most likely I had Samba 3 because CentOS has really old versions of software (they have te 2008 version of xrdp like Wth lol).
 
Old 05-26-2013, 03:44 PM   #10
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Alright so I did
Code:
yum install samba4
and everything was working nicely until I got this error

Code:
--> Processing Conflict: samba4-common-4.0.0-55.el6.rc4.i686 conflicts samba-common < 3.9.9
I tried to see if I had Samba already installed but it says that I dont so why is there a conflict? How do I even remove this?

Thanks!

Last edited by Altiris; 05-26-2013 at 03:51 PM.
 
Old 05-26-2013, 11:40 PM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
The message is telling you that you have some application installed that requires a version of samba-common less than 3.9.9

Here's one way to find out which package is requiring the old package. (Hopefully someone knows a better way. This is a lot of work!)
  1. First generate the diagraph of the entire repository: repo-graph centos > konsole.txt (where centos is the name of the base repository -- I just guessed. Look in /etc/yum.repos.d for the actual name -- you don't want the "updates" or "testing" ones. The output file can be whatever you want to use.)
  2. Create this gawk script:
    Code:
    #!/bin/gawk -f
    # Parse the diagraph file created by the repo-graph command to create a list of all packages which depend
    # on a specific package.
    #
    # Usage: Change the name in the BEGIN section, below, to contain the package for which you wish to
    #        list the packages requiring it.
    #
    BEGIN {
      requires="samba-common"
    }
    / -> {/ {
      name=gensub(/"/,"","g",$1) #"
      while (getline) {
        if ($0 ~ /^}/ ) break
        if ($0 ~ requires) {
          cmd="yum deplist " name
          found=0
          while (cmd | getline line) {
            n=split(line,part)
            if ((part[1] == "dependency:") && (part[2]==requires)) {
              print name " requires " part[2] " " part[3] " " part[4]
              found=1
            }
          }
          close(cmd)
          if (!found) {
            print name " requires " requires
          }
       }
      }
    }
    and make it executable.
  3. Run it like this:
    Code:
    $ ./parse_graph-repo.gawk konsole.out 
    system-config-samba requires samba-common  
    samba-test requires samba-common = 2:4.0.5-1.fc19
    samba-test requires samba-common = 2:4.0.5-1.fc19
    mod_auth_ntlm_winbind requires samba-common  
    samba-winbind requires samba-common = 2:4.0.5-1.fc19
    samba-dc-libs requires samba-common = 2:4.0.5-1.fc19
    libsmbclient requires samba-common = 2:4.0.5-1.fc19
    libsmbclient requires samba-common = 2:4.0.5-1.fc19
    samba-swat requires samba-common = 2:4.0.5-1.fc19
    samba-client requires samba-common = 2:4.0.5-1.fc19
    samba-winbind-clients requires samba-common = 2:4.0.5-1.fc19
    samba-winbind-clients requires samba-common = 2:4.0.5-1.fc19
    samba requires samba-common = 2:4.0.5-1.fc19
    (Your output should, of course, be somewhat different.)
Note that this will list every package in the repository that depends on "samba-common" (or whatever name you put in the "requires" variable), not just the packages you have installed.
 
Old 05-26-2013, 11:52 PM   #12
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Uhh I'm still a little new at this, I don't understand the first part where you ask me to generate a digraph/diagram or the entire repository, is that a command that I just put in the terminal?

EDIT: Ive generated a repo diagram thing, how do I parse it?

Last edited by Altiris; 05-27-2013 at 11:05 AM.
 
Old 05-27-2013, 10:47 PM   #13
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by Altiris View Post
[...]I've generated a repo diagram thing, how do I parse it?
That's what the gawk program does. Just copy/paste it into a file (usually in the same directory where you saved the diagraph script), do a chmod +x <gawk_script_name> to make it executable, and the run it: ./<script_name> <diagraph_script_name> (Where, of course, you substitute the correct names for the chevron (<>) delimited stuff.

GL
 
Old 05-28-2013, 06:37 PM   #14
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
Okay I will try, thanks a lot, don't know what I would do with you guys (specifically you).
 
Old 05-28-2013, 08:31 PM   #15
Altiris
Member
 
Registered: Mar 2013
Posts: 554

Original Poster
Rep: Reputation: Disabled
ALRIGHT I GOT IT!

It says
Code:
samba-domainjoin-gui requires samba-common = 3.6.9-151.el6
Why is samba-domainjoin-gui even in here if I never installed it? I just tried removing it and then it tells me that the package exists but its not installed...what?

Last edited by Altiris; 05-28-2013 at 08:32 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Dell PERC 5/i showing virtual disk "Ready" instead of "Optimal" MensaWater Linux - Hardware 1 08-30-2012 10:02 AM
samba error on windows "Network path not found" parkarnoor Linux - Newbie 2 03-23-2011 02:42 PM
Sabayon and Windows "My Documents" not showing bikrmagi Sabayon 18 06-17-2010 10:47 AM
SAMBA - cannot connect to local network: "Timeout on Server 'x'" v@ny@ Linux - Networking 5 02-16-2008 06:44 PM
New section for "Getting linux to cooperate with windows" wwnexc LQ Suggestions & Feedback 4 10-13-2005 12:13 PM


All times are GMT -5. The time now is 02:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration