Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: Unable to access Windows shares on an all Lucid network

  1. #11
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: Unable to access Windows shares on an all Lucid network

    Quote Originally Posted by Mylorharbour View Post

    [printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    printable = Yes
    browseable = No
    browsable = No
    you have two instances of browseable, one of which is missing the "e" before the "a".

    i don't know from nautilus but your terminal doesn't seem to be picking up the other 2 computers when you issued the nmblookup command. somewhere along the lines they are not communicating. i have to ask, your other two lucid computers were running and connected at the time you issued the command, right? if not you'll have to try it as such.


    you said you weren't behind a firewall but posting the output of the following to double check is good:
    Code:
    sudo iptables -L
    if you scroll up i posted a link to a similar thread i posted on. please examine my additions to the samba setup. try using those, if not temporarily, to see if they work out.

  2. #12
    Join Date
    Dec 2009
    Beans
    5,845

    Re: Unable to access Windows shares on an all Lucid network

    Quote Originally Posted by d3v1150m471c View Post
    you have two instances of browseable, one of which is missing the "e" before the "a".
    That's normal an a quirk of testparm when it interprets the smb.conf. If you notice it's not in his output of cat /etc/samba/smb.conf so there is nothing to fix. If you ran testparm on your own machine you would no doubt find the same thing.

    somewhere along the lines they are not communicating.
    One of the missing machines is due to the hostname being greater than 15 characters long.

    As for the firewall I would also like to suggest the following procedure:
    Install and run nmap:
    Code:
    sudo apt-get install nmap
    Code:
    sudo nmap -sS -sU -T4 192.168.0.100
    Run it 3 times changing 192.168.0.100 to the ip address of each of the machines. It will display the open ports on each of those machines. You will need the following ports open for samba / cups to work:
    139, 445, 631 tcp
    137, 138, 631 udp

  3. #13
    Join Date
    Feb 2008
    Location
    Cornwall, UK
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access Windows shares on an all Lucid network

    Morbius1,

    I carried out 2) and 3) from post #6 and restarted samba on both machines. No difference I'm afraid.

    \\HPDC7700\shared is a shared partition, shared between Windows and Ubuntu (dual boot machine).

    roy@HPdc7700:~$ sudo net usershare info
    [sudo] password for roy:
    [shared]
    path=/media/Shared
    comment=
    usershare_acl=Everyone:F,
    guest_ok=n


    d3v1150m471c,


    roy@HPdc7700:~$ ifconfig #
    eth0 Link encap:Ethernet HWaddr 00:0f:fe:63:98:da
    inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::20f:feff:fe63:98da/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:351 errors:0 dropped:0 overruns:0 frame:0
    TX packets:385 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:221959 (221.9 KB) TX bytes:53328 (53.3 KB)
    Memory:e0400000-e0420000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:131 errors:0 dropped:0 overruns:0 frame:0
    TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:14680 (14.6 KB) TX bytes:14680 (14.6 KB)

    Guys,
    I'll post again shortly when I've followed up some of your other suggestions.

  4. #14
    Join Date
    Feb 2008
    Location
    Cornwall, UK
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access Windows shares on an all Lucid network

    d3v1150m471c,


    roy@HPdc7700:~$ sudo iptables -L
    [sudo] password for roy:
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination


    I'll have a look at your link, cheers.

  5. #15
    Join Date
    Dec 2009
    Beans
    5,845

    Re: Unable to access Windows shares on an all Lucid network

    [1] Make sure you restart samba everytime you make changes to smb.conf:
    sudo service smbd restart
    [2] If you run the following command again:
    Code:
    smbtree
    Does it now show all of your shares on HPdc7700 and Dell-Laptop ( or whatever you renamed it to ). Or at least is it running without errors?

    [3] You say this share is shared between Windows and Linux in a dual boot:
    [shared]
    path=/media/Shared
    comment=
    usershare_acl=Everyone:F,
    guest_ok=n
    I'm going to guess that you do not have that partition automounted in fstab but mount it as you need it by going to Nautilus. If that's so then the remote user will never see it because the permissions are incorrect.

    My recommendation is to add 2 more lines to your smb.conf in the [global] section:
    Code:
    usershare allow guests = yes
    force user = roy
    Save smb.conf and then restart samba again:
    Code:
    sudo service smbd restart
    Now go back into Nautilus as gksu and check on the "Guest Access" box in Sharing Options for /media/Shared.

    And see if there is any change.

  6. #16
    Join Date
    Feb 2008
    Location
    Cornwall, UK
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access Windows shares on an all Lucid network

    Morbius1,
    I installed Nmap as requested:

    192.168.0.5 is the HPdc7700 with local printers (USB)
    192.168.0.2 is the Dell Inspiron
    192.168.0.4 is the wife's Asus Eee

    Ignore the blue stats. I pressed return a couple of times as I thought it may have crashed.

    roy@HPdc7700:~$ sudo nmap -sS -sU -T4 192.168.0.5

    Starting Nmap 5.00 ( http://nmap.org ) at 2010-10-27 21:50 BST
    Interesting ports on 192.168.0.5:
    Not shown: 1994 closed ports
    PORT STATE SERVICE
    139/tcp open netbios-ssn
    445/tcp open microsoft-ds
    68/udp open|filtered dhcpc
    137/udp open|filtered netbios-ns
    138/udp open|filtered netbios-dgm
    5353/udp open|filtered zeroconf

    Nmap done: 1 IP address (1 host up) scanned in 1.45 seconds
    roy@HPdc7700:~$
    roy@HPdc7700:~$ sudo nmap -sS -sU -T4 192.168.0.2

    Starting Nmap 5.00 ( http://nmap.org ) at 2010-10-27 21:51 BST
    Warning: Giving up on port early because retransmission cap hit.
    Stats: 0:01:03 elapsed; 0 hosts completed (1 up), 1 undergoing UDP Scan
    UDP Scan Timing: About 10.89% done; ETC: 22:00 (0:08:28 remaining)
    Stats: 0:05:38 elapsed; 0 hosts completed (1 up), 1 undergoing UDP Scan
    UDP Scan Timing: About 38.97% done; ETC: 22:05 (0:08:48 remaining)
    Interesting ports on 192.168.0.2:
    Not shown: 1983 closed ports
    PORT STATE SERVICE
    22/tcp open ssh
    139/tcp open netbios-ssn
    445/tcp open microsoft-ds
    68/udp open|filtered dhcpc
    137/udp open|filtered netbios-ns
    138/udp open|filtered netbios-dgm
    502/udp open|filtered asa-appl-proto
    593/udp open|filtered http-rpc-epmap
    1026/udp open|filtered win-rpc
    5353/udp open|filtered zeroconf
    17302/udp open|filtered unknown
    20313/udp open|filtered unknown
    20876/udp open|filtered unknown
    21303/udp open|filtered unknown
    21524/udp open|filtered unknown
    33249/udp open|filtered unknown
    60381/udp open|filtered unknown
    MAC Address: 00:13:02:26:8A:C5 (Intel Corporate)

    Nmap done: 1 IP address (1 host up) scanned in 979.14 seconds
    roy@HPdc7700:~$
    roy@HPdc7700:~$
    roy@HPdc7700:~$ sudo nmap -sS -sU -T4 192.168.0.4
    [sudo] password for roy:

    Starting Nmap 5.00 ( http://nmap.org ) at 2010-10-27 22:11 BST
    Warning: Giving up on port early because retransmission cap hit.
    Interesting ports on 192.168.0.4:
    Not shown: 1984 closed ports
    PORT STATE SERVICE
    139/tcp open netbios-ssn
    445/tcp open microsoft-ds
    68/udp open|filtered dhcpc
    137/udp open|filtered netbios-ns
    138/udp open|filtered netbios-dgm
    500/udp open|filtered isakmp
    688/udp open|filtered unknown
    903/udp open|filtered unknown
    1080/udp open|filtered socks
    5353/udp open|filtered zeroconf
    5555/udp open|filtered rplay
    17332/udp open|filtered unknown
    19273/udp open|filtered unknown
    21742/udp open|filtered unknown
    22045/udp open|filtered unknown
    52225/udp open|filtered unknown
    MAC Address: 00:15:AF:BD:7C:91 (AzureWave Technologies)

    Nmap done: 1 IP address (1 host up) scanned in 996.55 seconds

  7. #17
    Join Date
    Dec 2009
    Beans
    5,845

    Re: Unable to access Windows shares on an all Lucid network

    You have the requisite ports open for samba but you don't have them open for cups and that's your printer. If it's ok with you let's leave that for last because there is already too much going on here.

    Let's just make sure that smbtree from HPdc7700 can see everyone without generating errors.

    That /media/Shared directory is still confusing me. Can you post the output of the following:
    Code:
    ls -dl /media/Shared

  8. #18
    Join Date
    Feb 2008
    Location
    Cornwall, UK
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access Windows shares on an all Lucid network

    Morbius1,

    Some errors for you....

    roy@HPdc7700:~$ sudo service smbd restart
    [sudo] password for roy:
    smbd start/running, process 2275
    roy@HPdc7700:~$
    roy@HPdc7700:~$ smbtree
    Enter roy's password:
    WORKGROUP
    \\WENDY-LAPTOP wendy-laptop server (Samba, Ubuntu)
    cli_start_connection: failed to connect to WENDY-LAPTOP<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
    \\HPDC7700 HPdc7700 server (Samba, Ubuntu)
    \\HPDC7700\shared
    \\HPDC7700\deskjet-5550 hp deskjet 5550
    \\HPDC7700\Stylus-Photo-R220 EPSON Stylus Photo R220
    \\HPDC7700\IPC$ IPC Service (HPdc7700 server (Samba, Ubuntu))
    \\HPDC7700\print$ Printer Drivers
    \\DELL-LAPTOP Dell-Inspiron-Laptop server (Samba, Ubuntu)
    cli_start_connection: failed to connect to DELL-LAPTOP<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
    roy@HPdc7700:~$


    /media/shared is an NTFS partition only shared between Windows and Ubuntu, whichever OS I boot up, on the HP. It's not shared across the network. It contains home video files mainly which are edited by Windows and Ubuntu apps.

    I haven't added the 'usershare' code to smb.conf for that reason. Presumably this would do the same as right-clicking on the folder in Nautilus and ticking the box in Properties, Share?
    Last edited by Mylorharbour; October 27th, 2010 at 11:24 PM. Reason: For additional clarification

  9. #19
    Join Date
    Feb 2008
    Location
    Cornwall, UK
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access Windows shares on an all Lucid network

    As requested but see my previous post as I don't think it's relevant to this networking issue.

    roy@HPdc7700:~$ ls -dl /media/Shared
    drwxrwxrwx 1 root root 4096 2010-10-23 12:46 /media/Shared

  10. #20
    Join Date
    Dec 2009
    Beans
    5,845

    Re: Unable to access Windows shares on an all Lucid network

    You are sharing /media/Shared across the network:
    \\HPDC7700 HPdc7700 server (Samba, Ubuntu)
    \\HPDC7700\shared
    sudo net usershare info
    [sudo] password for roy:
    [shared]
    path=/media/Shared
    comment=
    usershare_acl=Everyone:F,
    guest_ok=n
    I haven't added the 'usershare' code to smb.conf for that reason. Presumably this would do the same as right-clicking on the folder in Nautilus and ticking the box in Properties, Share?
    userhare allow guests enables nautilus-share to grant guest access. Without it "Guest Access" would be grayed out.

    Let me think a bit about the latest smbtree output.

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

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
  •