Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Windows shared folders in suse

  1. #1

    Default Windows shared folders in suse

    I found this tutorial and ran through it to setup Samba.

    Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 10, 11

    it seemed to work. It found my workgroup and it even sees the windows PC on my network that I am trying to access files on but it doesn't seem to find the shared folders on there.

    I tried, as the tutorial suggested, restarting samba and now I am getting an error message that states,

    unable to find any workgroups in your network this might be caused by an enable firewall
    It was seeing the PC a moment ago so I'm not sure why it changed and windows firewall is disabled on the other PC so that shouldn't be causing any problems. I also have gone through the steps of opening the firewall on the Suse end to allow samba. I'm a bit baffled at this point. Any ideas?

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

    Default Re: Windows shared folders in suse

    Windows firewall by default allows samba. openSUSE's doesn't. Try it without the openSUSE firewall switched off -- to see if it is a problem with the openSUSE firewall. Run this command in a terminal window:
    Code:
    sudo /sbin/rcSuSEfirewall2 stop
    Note: it's case sensitive. That will turn it off until you next boot the machine. So with it off, does browsing improve?
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  3. #3

    Default Re: Windows shared folders in suse

    I shut down the firewall and it does see the workgroup but now doesn't see the other PC or, obviously, it's shared folders.

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

    Default Re: Windows shared folders in suse

    Can you please run these three commands and post here the returns you get from the commands:
    Code:
    testparm -s
    Code:
    smbtree -N
    Code:
    /sbin/chkconfig | egrep "nmb|smb"
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  5. #5

    Default Re: Windows shared folders in suse

    testparm -s

    Load smb config files from /etc/samba/smb.conf
    Processing section "[homes]"
    Processing section "[profiles]"
    Processing section "[users]"
    Processing section "[groups]"
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_DOMAIN_MEMBER
    [global]
    workgroup = HOME
    security = DOMAIN
    map to guest = Bad User
    printcap name = cups
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    logon path = \\%L\profiles\.msprofile
    logon drive = P:
    logon home = \\%L\%U\.9xprofile
    domain master = No
    usershare max shares = 100
    cups options = raw
    include = /etc/samba/dhcp.conf

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

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

    [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
    create mask = 0600
    printable = Yes
    browseable = No

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

    HOME
    \\MEDIAPC Media PC
    Receiving SMB: Server stopped responding
    failed negprot
    \\LINUX-FBGC Samba 3.2.7-11.3.2-2154-SUSE-CODE11
    \\LINUX-FBGC\IPC$ IPC Service (Samba 3.2.7-11.3.2-2154-SUSE-CODE11)
    \\LINUX-FBGC\print$ Printer Drivers
    \\LINUX-FBGC\groups All groups
    \\LINUX-FBGC\users All users
    \\LINUX-FBGC\profiles Network Profiles Service
    /sbin/chkconfig | egrep "nmb/smb"

    nmb on
    smb on
    smbfs on

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

    Default Re: Windows shared folders in suse

    You've set this up for the openSUSE machine to be a member of a domain controlled by a Windows Server (like windows server 2000/2003/2007 etc), like for a government department or maybe a business with 30 machines. Did you intend that, or did you intend for normal home networking?
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  7. #7

    Default Re: Windows shared folders in suse

    Just normal homes networking. How do I go about fixing that?

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

    Default Re: Windows shared folders in suse

    You can open the GUI editor for the file smb.conf (with root priviliges) with one of these commands:
    • KDE users: kdesu kwrite /etc/samba/smb.conf
    • Gnome suers: gnomesu gedit /etc/samba/smb.conf

    Then change these lines
    Code:
    [global]
    workgroup = HOME
    security = DOMAIN
    map to guest = Bad User
    printcap name = cups
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    logon path = \\%L\profiles\.msprofile
    logon drive = P:
    logon home = \\%L\%U\.9xprofile
    domain master = No
    usershare max shares = 100
    cups options = raw
    include = /etc/samba/dhcp.conf
    to this:
    Code:
    [global]
    workgroup = HOME
    netbios name = PUT_PREFERRED_NAME_HERE
    name resolve order = bcast host lmhosts wins
    server string = ""
    map to guest = Bad User
    local master = yes
    preferred master = yes
    os level = 65
    usershare allow guests = Yes
    usershare max shares = 100
    usershare owner only = False
    Keep the firewall off [Yast --> Security & Users --> Firewall --> Disable Firewall Auto Starting]. You can turn it on again after everything is working.

    Then reboot all the machines in sequence. Then do the reboot again in same sequence (that gets them all talking and they elect the Linux box as the Browse Master).
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  9. #9

    Default Re: Windows shared folders in suse

    When I open that it looks a little bit different then what you posted. It reads like this:

    [global]
    workgroup = HOME
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = No
    security = domain
    usershare max shares = 100
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = No
    domain master = No
    passdb backend = smbpasswd
    wins support = No
    [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

    ## Share disabled by YaST
    # [netlogon]
    I know you're saying to change that first section. If I just delete that and paste in what you put there will that work or am I just changing selected portions of it?

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

    Default Re: Windows shared folders in suse

    Quote Originally Posted by elduderino9 View Post
    When I open that it looks a little bit different then what you posted. It reads like this:



    I know you're saying to change that first section. If I just delete that and paste in what you put there will that work or am I just changing selected portions of it?
    All of [global]. You can paste OK.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

Page 1 of 3 123 LastLast

Posting Permissions

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