Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: 12.04 not visible on Windows 8 network

  1. #1
    Join Date
    Oct 2012
    Beans
    7

    12.04 not visible on Windows 8 network

    Hi everyone! I've been an Ubuntu user for a little over half a year now; first time poster but long time browser of this site. I'm having an issue that I haven't been able to resolve through previous threads or research.

    I have a Windows 8 laptop that up until recently showed my Ubuntu system on the network and had no connectivity issues. A few days ago, it suddenly stopped showing up on the Win 8 network and I can't access it anymore. I had some issues with using sudo that required a few edits to the sudoers file; I suspect it may be related to this, but I have no idea. I run a dual boot on my Ubuntu desktop, also with Windows 8 and the laptop can access it fine when Win 8 is loaded, so I'm sure the issue isn't with the laptop.

    I tried the procedures in this thread: http://ubuntuforums.org/showthread.php?t=1981511 with no success and afterward restored my smb.conf file to how I found it. I can ping the Ubuntu machine from the laptop via IP address with no issues, making me further wonder why it won't show up on the network.

    If you need any output files or futher information, let me know and I'll be happy to provide them. Thanks a lot in advance!

  2. #2
    Join Date
    Dec 2009
    Beans
    6,767

    Re: 12.04 not visible on Windows 8 network

    I can ping the Ubuntu machine from the laptop via IP address with no issues, making me further wonder why it won't show up on the network.
    When you try to access a remote share you do so by netbios name. When you ping you ping by host name. 2 different names that may in fact be the same but are used in 2 different protocols so doing one does not insure the other will work.

    Please post the output of the following commands:
    Code:
    testparm -s
    smbtree
    hostname
    BTW, this may seem like an off the wall question but do you by any chance have iTunes or Safari installed on Win8?

  3. #3
    Join Date
    Sep 2012
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 12.04 not visible on Windows 8 network


  4. #4
    Join Date
    Oct 2012
    Beans
    7

    Re: 12.04 not visible on Windows 8 network

    Thank you for the replies!

    I tried the method in the article to no avail; as this is what my work group name was set to before. I even checked my laptop to make sure the work group was indeed named WORKGROUP (Windows default).

    Here are the outputs of the commands:

    Code:
    maverick@maverick-N68S3:~$ testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[homes]"
    Processing section "[Apollo]"
    Processing section "[profiles]"
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[root directory]"
    Loaded services file OK.
    WARNING: You have some share names that are longer than 12 characters.
    These may not be accessible to some older clients.
    (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
    Server role: ROLE_STANDALONE
    [global]
        server string = %h server (Samba, Ubuntu)
        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
        client NTLMv2 auth = No
        client lanman auth = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        name resolve order = lmhosts host wins bcast
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb
        force user = maverick
    
    [homes]
        comment = Home Directories
        read only = No
    
    [Apollo]
        comment = Hard drive
        path = /media/Apollo
        read only = No
        create mask = 0755
        guest ok = Yes
    
    [profiles]
        comment = Users profiles
        path = /home/samba/profiles
        create mask = 0600
        directory mask = 0700
        browseable = No
    
    [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
    
    [root directory]
        path = /
        read only = No
        guest ok = Yes
    Code:
    maverick@maverick-N68S3:~$ smbtree
    Enter maverick's password: 
    WORKGROUP
        \\MB                     
            \\MB\Users              
            \\MB\print$             Printer Drivers
            \\MB\IPC$               Remote IPC
            \\MB\HP2B84C5 (HP Officejet 4620 series)    This is a web services printer
            \\MB\C$                 Default share
            \\MB\ADMIN$             Remote Admin
    Code:
    maverick@maverick-N68S3:~$ hostname
    maverick-N68S3
    I have iTunes installed on my Win 8 laptop. It was one of the first things I installed when I got it, so I could access 12.04 for some time with it installed until the issue arose. No Safari. Thank you for the clarification on netbios and hostnames; I had seen banter about that in another thread but couldn't really grasp it.

    Thanks again!

  5. #5
    Join Date
    Dec 2009
    Beans
    6,767

    Re: 12.04 not visible on Windows 8 network

    The only reason I brought up iTunes was not that it was the source of the problem but that it's a possible solution. iTunes installs bonjour without the users knowledge. Bonjour in Linux is called avahi. So you can connect directly to the Linux machine by name and map it. For example:
    Code:
     \\maverick-N68S3.local\Apollo
    It's the .local from bonjour/avahi that makes this possible.

    Anyway, for the more traditional approach I would rearrange your name resolve order line to have bcast first since it's the only method working out of the 4:
    Code:
    name resolve order = bcast host lmhosts wins
    Save the file and restart samba:
    Code:
    sudo service smbd restart
    sudo service nmbd restart
    EDIT: Since smbtree doesn't even give an error about your Linux machine I'm wondering if you have a firewall in the way. You might want to turn it off to see:
    Code:
     sudo ufw disable
    EDIT2: I did notice one other anomaly. You have a "force user" in your [global] sections which is fine but you also have a [homes] section so it's going to block just about everybody except "maverick' from accessing their home directory.
    Last edited by Morbius1; January 29th, 2013 at 03:28 PM.

  6. #6
    Join Date
    Oct 2012
    Beans
    7

    Re: 12.04 not visible on Windows 8 network

    Well, I've tried rearranging the resolve order and still no luck.

    The force user line was added when I could see the machine from my laptop but couldn't connect. I researched the issue and on these forums someone suggested adding that line; basically tricking the machine into thinking that anyone logging in was actually on the Ubuntu machine. It worked like a charm at the time.

    Here are the updated outputs to the previously requested commands, though I'm not so sure anything has changed:

    Code:
    maverick@maverick-N68S3:~$ testparm -s
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[homes]"
    Processing section "[Apollo]"
    Processing section "[profiles]"
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[root directory]"
    Loaded services file OK.
    WARNING: You have some share names that are longer than 12 characters.
    These may not be accessible to some older clients.
    (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
    Server role: ROLE_STANDALONE
    [global]
        server string = %h server (Samba, Ubuntu)
        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
        client NTLMv2 auth = No
        client lanman auth = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        name resolve order = bcast host lmhosts wins
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb
        force user = maverick
    
    [homes]
        comment = Home Directories
        read only = No
    
    [Apollo]
        comment = Hard drive
        path = /media/Apollo
        read only = No
        create mask = 0755
        guest ok = Yes
    
    [profiles]
        comment = Users profiles
        path = /home/samba/profiles
        create mask = 0600
        directory mask = 0700
        browseable = No
    
    [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
    
    [root directory]
        path = /
        read only = No
        guest ok = Yes
    Code:
    maverick@maverick-N68S3:~$ smbtree
    Enter maverick's password: 
    WORKGROUP
        \\WINDOWSMAV             
        \\MB                     
            \\MB\Users              
            \\MB\print$             Printer Drivers
            \\MB\Jenn's classes     
            \\MB\IPC$               Remote IPC
            \\MB\HP2B84C5 (HP Officejet 4620 series)    This is a web services printer
            \\MB\C$                 Default share
            \\MB\ADMIN$             Remote Admin
    I've heard some horror stories about Windows home groups screwing up access to Linux systems... could this maybe be part of the problem?

  7. #7
    Join Date
    Dec 2009
    Beans
    6,767

    Re: 12.04 not visible on Windows 8 network

    On your Ubuntu system you have 2 separate Samba components - a samba client and a samba server. The smbtree command is a samba client command. Your samba client cannot see your samba server on the same box. At this point it doesn't matter if Win8 can see it - it can't see itself.

    If you run this command does it list your shares?
    Code:
     nautilus smb://maverick-N68S3
    OR this one:
    Code:
     nautilus smb://maverick-N68S3.local
    OR this one:
    Code:
     nautilus smb://192.168.0.100
    Change the ip address to match your own.

  8. #8
    Join Date
    Oct 2012
    Beans
    7

    Re: 12.04 not visible on Windows 8 network

    Thanks for the info! Yes, all three commands open a file browser that shows my Windows shares.

  9. #9
    Join Date
    Dec 2009
    Beans
    6,767

    Re: 12.04 not visible on Windows 8 network

    If you run the equivalent commands from the Windows box can you gain access?

  10. #10
    Join Date
    Oct 2012
    Beans
    7

    Re: 12.04 not visible on Windows 8 network

    This may turn into a complete 'duh' moment for me... but what are the equivalent Windows commands? I've entered a few I thought would work, did a google search and no luck.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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