Find the answer to your Linux question:
Results 1 to 7 of 7
Hi. I'm having issues with Samba. I have read AlexK's Samba FAQ, great but I'm still having problems. Samba starts and I can see the server from XP but no ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Location
    Derbyshire UK
    Posts
    4

    Samba Issue, can see server but not shares from Wintel


    Hi.

    I'm having issues with Samba. I have read AlexK's Samba FAQ, great but I'm still having problems. Samba starts and I can see the server from XP but no shares.

    O/S CentOS 4.4
    Samba Version = Version 3.0.10-1.4E.11 (found using smbd -V)

    I have set up users what I am seeing is:

    On Witel share attempt:

    \\Jupiter\imagebank can not be found.

    When browsing on XP in the treeview Jupiter shows with a (+) but when I expand the view there is nothing:

    smbclient -L localhost returns:
    tree connect failed: Call returned zero bytes (EOF)

    I guess this is the heart of the issue but what is the answer?

    In nmbd.log

    [2007/04/08 19:40:20, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(283)
    standard_fail_register: Failed to register/refresh name MSHOME<00> on subnet U
    NICAST_SUBNET
    [2007/04/08 19:40:20, 0] nmbd/nmbd_nameregister.c:register_name_response(130)
    register_name_response: WINS server at IP 127.0.0.1 rejected our name registra
    tion of MSHOME<1e> IP 10.0.0.234 with error code 5.
    [2007/04/08 19:40:20, 0] nmbd/nmbd_workgroupdb.c:fail_register(22
    fail_register: Failed to register name MSHOME<1e> on subnet UNICAST_SUBNET.
    [2007/04/08 19:40:20, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(283)
    standard_fail_register: Failed to register/refresh name MSHOME<1e> on subnet U
    NICAST_SUBNET


    My smb.conf look like this:

    # Global Parameters

    [global]
    netbios name = Jupiter
    server string = Jupiter Samba Server
    workgroup = MSHOME
    security = user
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    log file = /var/log/samba/%m.log
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    wins support = yes
    hostname lookups = yes
    hosts equiv = /etc/hosts
    hosts allow = 10.0.0.10/255.255.255.0 localhost
    hosts deny = All
    interfaces = lo eth0
    bind interfaces only = yes
    guest ok = yes
    browse list = yes
    printcap name = cups
    printing = cups
    load printers = yes

    [imagebank]
    path = /image_bank
    comment = Photographic Archives
    guest ok = yes
    create mode = 0766
    browsable = yes
    public = yes
    read only = no


    Any ideas or suggestions welcome.

    Rob.

  2. #2
    Just Joined!
    Join Date
    Apr 2007
    Location
    Derbyshire UK
    Posts
    4
    I have been trying to sort this out by editing my smb.conf to look like this:

    # Global Parameters

    [global]
    netbios name = Jupiter
    server string = Jupiter Samba Server
    workgroup = MSHOME
    security = user
    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd
    log file = /var/log/samba/%m.log
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    #wins support = yes
    hostname lookups = yes
    hosts equiv = /etc/hosts
    #hosts allow = 10.0.0.10/255.255.255.0 localhost
    #hosts deny = All
    interfaces = lo eth0
    bind interfaces only = yes
    guest ok = yes
    browse list = yes
    #printcap name = cups
    #printing = cups
    #load printers = yes

    [imagebank]
    path = /image_bank
    comment = Photographic Archives
    guest ok = yes
    create mode = 0766
    browsable = yes
    public = yes
    read only = no

    I have been able to get smbclient -L localhost to respond but still no folders in XP.

    Example:

    smbclient -L localhost
    Password:
    Domain=[JUPITER] OS=[Unix] Server=[Samba 3.0.10-1.4E.11]

    Sharename Type Comment
    --------- ---- -------
    imagebank Disk Photographic Archives
    IPC$ IPC IPC Service (Jupiter Samba Server)
    ADMIN$ IPC IPC Service (Jupiter Samba Server)
    Domain=[JUPITER] OS=[Unix] Server=[Samba 3.0.10-1.4E.11]

    Server Comment
    --------- -------

    Workgroup Master
    --------- -------
    MSHOME

  3. #3
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    did you create the users on the sever?

    useradd sameuseraswindows
    passwd sameuseraswindows
    new password >
    again>

    smbpasswd -a sameuseraswindows

    ON the SERVER?
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  4. #4
    Just Joined!
    Join Date
    Apr 2007
    Location
    Derbyshire UK
    Posts
    4
    Quote Originally Posted by adrenaline
    did you create the users on the sever?

    useradd sameuseraswindows
    passwd sameuseraswindows
    new password >
    again>

    smbpasswd -a sameuseraswindows

    ON the SERVER?
    Yes, but as this is a home network, my PC's don't logon with a password. I intend to enter a share specific user and password via the map network drive dialogue.

    XP is stating it cant find the server in the network, but surely if they both have 10.0.0.xxx addresses with a netmask of 255.255.255.0 they are on the same network. All the XP boxes have a host entry for Jupiter (the server) and can ping it by name as well ass address.

    Rob.

  5. #5
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    for this to work you are going to have to have passwords. You are going to have to create logins.

    You have to at least have some kind of security even on a home network if you are going to share on your network.

    That I am sure is what your issue is.

    If you are going to share stuff with no passwords you will be sharing it to everybody on the net.
    you also need to uncomment this line
    #hosts allow = 10.0.0.10/255.255.255.0 localhost
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  6. #6
    Just Joined!
    Join Date
    Apr 2007
    Location
    Derbyshire UK
    Posts
    4
    Quote Originally Posted by adrenaline
    for this to work you are going to have to have passwords. You are going to have to create logins.

    You have to at least have some kind of security even on a home network if you are going to share on your network.

    That I am sure is what your issue is.

    If you are going to share stuff with no passwords you will be sharing it to everybody on the net.
    you also need to uncomment this line
    #hosts allow = 10.0.0.10/255.255.255.0 localhost
    I could understand that if it was not allowing me to log in, but I can't even see any shares, and XP states the server is "not found on the network".

    I do not intend to share by wintel username, but have the share logged into via a generic login called FRED for istance, via the logon as a different user dialogue.

    This is how I intend it to work, if It can't work like that then perhaps I will nhave to look at some other solution, although I don't know what.

  7. #7
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Is it too much of a problem to create user accounts and make it available when that user logs in?

    I don't think you are going to be able to share anything without suid ie useraccounts. Meaning username/password. Unless there is something I don't know.

    Also you have host.allow and host.deny commented out it will not work that way either.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

Posting Permissions

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