Results 1 to 7 of 7

Thread: Got internet but no shares

  1. #1

    Default Got internet but no shares

    Hi

    Ok, first my apologies, I am completely new to Linux systems, 2 days old in fact.

    Was enjoying my new experiences until I tried to access/see my OpenSuse 11.4 install (Within VirtualBox on Windows 7)

    I can surf the net and download packages etc but from Windows 7 the Virtual OpenSuse7 does not show up.

    I know the windows network works because I also have Ubuntu10.4 on VirtualBox and that I can see and access fine.

    Change to OpenSuse and it all goes down the tubes, doesnt even show up in the Network on Winsows 7

    With Ubuntu I have etho setup to use DHCP automatically.

    I've tried numberous settings unsuccessfully on Suse and I think in the process have probably changed something incorrectly, but it didnt show up in Network places even before I started fiddling.

    Any help in this regard would be appreciated.

    Settings within Network Settings are:
    ==================================

    1) Global options
    Network Setup method: Tradional with ifup
    IPv6 Protocol - Enabled

    DHCP Client ident: blank

    Hostname to send: AUTO

    Change default poute via dhcp: ticked

    2) Overview: Gigabit ethernet controller: DHCP
    82540EM Gigabit Ethernet Controller
    MAC : 08:00:27:d5:b6:91
    BusID : 0000:00:03.0

    Device Name: eth0
    Started automatically at boot
    IP address assigned using DHCP

    Dynamic address: DHCP - DHCP Both versions 4 and 6

    Hardware: device name: eth0

    3) Hostname/DNS

    Hostname: linux-j560
    Domain name: site
    Everything else blank

    4) Routing all blank




    Firewall:
    ====================================================

    Disabled (I have no need for a firewwall as this is only used for a local web development platform, or that was the plan



    Windows Domain Membership
    ==================================

    Domain/workgroup = MSHOME

    Many thanks
    John

  2. #2

    Default Re: Got internet but no shares

    Just realised I can see my Windows network in Konqueror through address

    smb://john-win7pc/

    So just Windows is not seeing Suse

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Got internet but no shares

    Let's gather some broad information, check a few possibilities:

    Is the workgroup name MSHOME in both?
    Is the form of networking in VirtualBox interface set to "bridged" or to "nat"

    Please post here the contents of the file smb.conf (run this in a console to see it: cat /etc/samba/smb.conf)
    What response do you get in openSUSE to this command (and yes, there are two minus signs in there): su - -c "rcnmb status;rcsmb status"
    What does this show: cat /etc/SuSE-release

    In windows do start --> type in cmd and open the "cmd" window and run ipconfig --> what's the IPv4 address?
    In openSUSE run command: /sbin/ifconfig | grep Bcast ---> what's the inet addr?

    In windows --> network and Sharing --> advanced --> turn on network discovery (already on I'm sure)
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  4. #4

    Default Re: Got internet but no shares

    Hey Swerda, cheers for replying


    MSHOME in Win7.

    Suse Yast -> Network Services -> Windows Domain Membership = MSHOME
    Use SMB Info checkbox off though.


    =========== smb.conf ===================

    john@linux-j560:~> cat /etc/samba/smb.conf
    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    # Date: 2011-03-01
    [global]
    printcap name = cups
    cups options = raw
    map to guest = Bad User
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    security = domain
    passdb backend = smbpasswd
    usershare max shares = 100
    usershare allow guests = Yes
    workgroup = MSHOME
    netbios name = OpenSuse
    wins support = No
    wins server =

    [homes]
    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes

    [profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700

    [users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/

    [groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes

    [printers]
    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @ntadmin root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775

    [virtual hosts]
    comment = virtual hosts config file area
    inherit acls = yes
    path = /etc/apache2/vhosts.d/
    read only = no
    guest ok = yes
    force user = john

    [www_root]
    comment = websites
    inherit acls = yes
    path = /srv/www/htdocs/
    read only = no
    guest ok = yes
    guest account = john

    [PUBLIC]
    path = /home/john/Public/
    guest ok = yes
    read only = no
    guest account = john

    ========================================================================

    su - -c "rcnmb status;rcsmb status" Response was

    Samba NMB Daemon running
    Samba SMB daemon

    ========================================================================================================================

    cat /etc/SuSE-release
    No such directory, but this is OpenSuSe 11.4 off the latest Linux Format DVD with full update.
    ================================================================================================
    Win IpConfig

    Ethernet adapter Local Area Connection* 25:

    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . : hshld.com

    Ethernet adapter Local Area Connection 2:

    Connection-specific DNS Suffix . : mshome.net
    IPv4 Address. . . . . . . . . . . : 192.168.0.151
    Subnet Mask . . . . . . . . . . . : 255.255.255.0



    Ethernet adapter VirtualBox Host-Only Network:

    Connection-specific DNS Suffix . :
    Autoconfiguration IPv4 Address. . : 169.254.145.63
    Subnet Mask . . . . . . . . . . . : 255.255.0.0
    Default Gateway . . . . . . . . . :

    ================================================================================================


    Link encap:Ethernet HWaddr 08:00:27:95:1B:F0
    inet6 addr: fec0::8:a00:27ff:fe95:1bf0/64 Scope:Site
    inet6 addr: 2002:290e:a41d:8:a00:27ff:fe95:1bf0/64 Scope:Global
    inet6 addr: fe80::a00:27ff:fe95:1bf0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:18782 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12260 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:25273729 (24.1 Mb) TX bytes:958803 (936.3 Kb)

    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:1696 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1696 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:225149 (219.8 Kb) TX bytes:225149 (219.8 Kb)

  5. #5
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Got internet but no shares

    Ahh... a bug in 11.4:
    su - -c "rcnmb status;rcsmb status" Response was

    Samba NMB Daemon running
    Samba SMB daemon
    The smb daemon is not running. Bug! Go to Yast --> AppArmour --> AppArmour control panel --> configure profile modes --> set profile modes click button Configure --> highlight usr.sbin.smbd and ToggleMode so it reads "complain". then reboot, then try the command again -- it should look like this now:
    Code:
    Checking for Samba NMB daemon    running
    Checking for Samba SMB daemon    running
    Is that fixed?

    Next thing is that openSUSE appears to be on a different IP subnet from windows, so there will be internet but no networking (or not too good). I have not run VBox in windows but there is in Linux version a place to adjust the virtual network interface and options: none, NAT, Bridged, Internal or Host-Only. You have Host-Only. Close openSUSE. Activate the control interface for VirtualBox and change the type to Bridged. Restart the openSUSE machine.

    So what now is the IP address for VirtualBox in win ipconfig?
    and what do you get now from the /sbin/ifconfig test?

    I'll suggest a change to the [global] stanza of smb.conf, change it from this:
    [global]
    printcap name = cups
    cups options = raw
    map to guest = Bad User
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    security = domain
    passdb backend = smbpasswd
    usershare max shares = 100
    usershare allow guests = Yes
    workgroup = MSHOME
    netbios name = OpenSuse
    wins support = No
    wins server =
    To this:

    [global]
    printcap name = cups
    cups options = raw
    map to guest = Bad User
    security = USER
    passdb backend = smbpasswd
    usershare max shares = 100
    usershare allow guests = Yes
    workgroup = MSHOME
    netbios name = OpenSuse
    name resolve order = bcast host lmhosts wins
    os level = 64
    preferred master = Auto
    local master = Yes
    It's just a text file. Editing it is like using "notepad" in windows. In openSUSE you first make a backup with this command:
    Code:
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
    then you edit it with this command:
    Code:
    kdesu kwrite /etc/samba/smb.conf
    and just paste the code portion that I gave you, over the top of the old code portion (or type it, whatever). That will require a reboot of the virtual openSUSE to enable it.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  6. #6

    Default Re: Got internet but no shares

    whooo that was simple after hours of struggling.

    Changed just the conf and the daemons as you described and network palces in windows filled with folder after the reboot.

    Thanks so much, make my weekend that

    VirtualBox was in bridged mode already, i think i must have changed it earlier.

    Thanks again

  7. #7
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Got internet but no shares

    Great to hear, chalk one up for Linux.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

Posting Permissions

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