Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've run into a strange thing. I just set up my brothers laptop with ubuntu 12.04. I installed samba and shared his Public folder in his /home by right click -> Share this folder. I put in the correct workgroup (JAVED-HOME) in Samba. The computer is able to access the Ubuntu server and read its shares but when I tried to access his Public folder from the server...it gives an error "Failed to mount: Unable to get share list from the server".

Here is the output of smbtree on brothers laptop:

JAVED-HOME
    \\HOME-SERVER           Home-Server
        \\HOME-SERVER\ML-2160-Series    Samsung ML-2160 Series
        \\HOME-SERVER\IPC$              IPC Service (Home-Server)
        \\HOME-SERVER\TOSHIBA           
        \\HOME-SERVER\saad              Saad's Personal Storage
        \\HOME-SERVER\data              Central Storage Area
        \\HOME-SERVER\dvd-rw            Home-Server Asus DVD-RW
        \\HOME-SERVER\print$            Printer Drivers
    \\DELL-XPS-L502X        Saad's Laptop
        \\DELL-XPS-L502X\Public             
        \\DELL-XPS-L502X\samsung-ml-2165-laserjet   Samsung ML-2165 Laserjet (hplj-pcl5e)
        \\DELL-XPS-L502X\IPC$               IPC Service (Saad's Laptop)
        \\DELL-XPS-L502X\print$             Printer Driver`

Here is the output of testparm on his laptop:

[global]
    workgroup = JAVED-HOME
    server string = Saad's Laptop
    map to guest = Bad User
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    username map = /etc/samba/smbusers
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY SO_KEEPALIVE
    dns proxy = No
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d
    idmap config * : backend = tdb

[printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    printable = Yes
    print ok = Yes
    browseable = No

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers

I'm not running any domain servers, all computers are users and part of the same workgroup.

share|improve this question
    
Does this answer help you? –  mrcktz Nov 4 '12 at 10:46
    
@mrcktz I'm already running winbind. Here are the outputs of the other commands run from the server: saad@Home-Server:~$ nmblookup -B 192.168.0.104 __SAMBA__ querying __SAMBA__ on 192.168.0.104 name_query failed to find name __SAMBA__ saad@Home-Server:~$ smbclient -L //192.168.0.104 -U saad Enter saad's password: Connection to 192.168.0.104 failed (Error NT_STATUS_UNSUCCESSFUL) –  koogee Nov 4 '12 at 12:36
    
nmblookup and smbclient on the client produce valid results listing shares...but not from server. I can however ping the server and client from each other. –  koogee Nov 4 '12 at 12:41
1  
Turned out to be a simple firewall issue. I disabled it on the client laptop with sudo ufw disable and everything started working. Hope this helps someone. –  koogee Nov 4 '12 at 13:40

1 Answer 1

koogee answered this in a comment:

Turned out to be a simple firewall issue. I disabled it on the client laptop with sudo ufw disable and everything started working. Hope this helps someone.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.