Find the answer to your Linux question:
Results 1 to 3 of 3
I have two headless RedHat Kernels each running Samba, but I can only get one to work correctly! This one works: Code: root ecm # testparm Load smb config files ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23

    samba smbclient -L gives NT_STATUS_BAD_NETWORK_NAME


    I have two headless RedHat Kernels each running Samba, but I can only get one to work correctly!
    This one works:
    Code:
    root ecm # testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[dev]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    [global]
            workgroup = SCORPION2
            security = SHARE
    
    [dev]
            comment = ecm dev user folder
            path = /home/dev
            read only = No
            guest ok = Yes
    
    
    root ecm # smbclient -L //ecm
    Password: <none>
    Domain=[SCORPION2] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
    
            Sharename       Type      Comment
            ---------       ----      -------
            dev             Disk      ecm dev user folder
            IPC$            IPC       IPC Service (Samba 3.0.33-3.7.el5)
    Domain=[SCORPION2] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
    
            Server               Comment
            ---------            -------
            ECM                  Samba 3.0.33-3.7.el5
            TG                   Samba 3.0.33-3.7.el5
    
            Workgroup            Master
            ---------            -------
            RRDSL                CRAWD11514
            SCORPION2            ECM
    And this one not :
    Code:
    root tg# testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[dev1]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions
    
    [global]
            workgroup = SCORPION2
            security = SHARE
    
    [dev1]
            comment = tg dev user folder
            path = /home/dev
            read only = No
            guest ok = Yes
    
    
    root tg # smbclient -L //tg
    Connection to tg failed (Error NT_STATUS_BAD_NETWORK_NAME)
    
    
    root tg # smbclient -L //localhost
    Password:<none>
    Domain=[SCORPION2] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
    
            Sharename       Type      Comment
            ---------       ----      -------
            dev1            Disk      tg dev user folder
            IPC$            IPC       IPC Service (Samba 3.0.33-3.7.el5)
    Domain=[SCORPION2] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
    
            Server               Comment
            ---------            -------
            TG                   Samba 3.0.33-3.7.el5
    
            Workgroup            Master
            ---------            -------
            SCORPION2
    
    
    root tg # smbclient -L //ecm
    Password:<none>
    Domain=[SCORPION2] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
    
            Sharename       Type      Comment
            ---------       ----      -------
            dev             Disk      ecm dev user folder
            IPC$            IPC       IPC Service (Samba 3.0.33-3.7.el5)
    Domain=[SCORPION2] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
    
            Server               Comment
            ---------            -------
            ECM                  Samba 3.0.33-3.7.el5
    
            Workgroup            Master
            ---------            -------
            RRDSL                CRAWD11514
            SCORPION2            ECM
    What I notice is that the smbclient Master doesnt show any items on tg?!

    Any clues?

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    If you NetBIOS names doesn't match you can try using -I (connecting using IP) instead of -L
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    23
    This has now been SOLVED "Here"

    Quote Originally Posted by Linux Forums Site
    The following errors occurred with your submission:
    You are only allowed to post URLs to other sites after you have made 15 posts or more.
    So I cant add a direct link to the site, so, its on LinuxQuestions.org, titled the same as on here "samba smbclient -L gives NT_STATUS_BAD_NETWORK_NAME"

    Many thanks for your help.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •