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

Thread: Samba not working OpenSUSE 11.4

  1. #1
    Join Date
    Jun 2011
    Location
    Adelaide, South Australia
    Posts
    107

    Default Samba not working OpenSUSE 11.4

    I have setup samba server, set NMBD, SMBD & NTPD from system services and set apparmor to complain but I am still unable to read any network drives. I have checked the firewall and seen that samba is set to enable for internal allowed services. Also should I be changing the NMBD, SMBD & NTPD to complain from App armor?
    Any suggestions please.
    Many thanks in advance for your help.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,500
    Blog Entries
    48

    Smile Re: Samba not working OpenSUSE 11.4

    There is a bug with openSUSE 11.4 and nmb for which you can see the fix here:

    Samba set up : nmb is not starting

    Are you saying you have already addressed the nmb problem? For most issues with Samba I suggest a visit to here:

    Samba: Practical Introduction to Linux Usershares on openSUSE 10 11

    You might want to post your /etc/samba/smb.conf file for us to see. You might want to post your /etc/fstab file if you are trying to share a partition other than /home? Please let us know if you do not know how to do this.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    10,968
    Blog Entries
    2

    Default Re: Samba not working OpenSUSE 11.4

    You should set usr.sbin.smbd and usr.sbin.nmbd to complain in AppArmor
    And in Yast -- Firewall --> allowed services you should have (1) netbios server (2) samba server and (3) samba client set as allowed.

    When you run this command:
    Code:
    su -c "rcnmb status;rcsmb status"
    you should see two answers both saying "running".

    How does all of that check out?

  4. #4
    Join Date
    Jun 2011
    Location
    Adelaide, South Australia
    Posts
    107

    Default Re: Samba not working OpenSUSE 11.4

    Hi,
    I havnt fixed the nmb problem, sorry. Please see smb.conf below


    # 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]
    workgroup = WORKGROUP
    passdb backend = tdbsam
    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
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = No
    domain master = Auto
    local master = Yes
    os level = 65
    preferred master = Yes
    security = domain
    idmap gid = 10000-20000
    idmap uid = 10000-20000
    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

    [netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    write list = root

    Fstab below

    /dev/disk/by-id/ata-TOSHIBA_MK5056GSY_60OBT3NYT-part1 swap swap defaults 0 0
    /dev/disk/by-id/ata-TOSHIBA_MK5056GSY_60OBT3NYT-part2 / ext4 acl,user_xattr 1 1
    /dev/disk/by-id/ata-TOSHIBA_MK5056GSY_60OBT3NYT-part3 /home ext4 acl,user_xattr 1 2
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0

    Also it says it cant find the Workgroups on the samba settings. I am not very experienced with Linux just learning sorry for lack of detail and many thanks for your help,

  5. #5
    Join Date
    Jun 2011
    Location
    Adelaide, South Australia
    Posts
    107

    Default Re: Samba not working OpenSUSE 11.4

    THE STATUS READS

    Checking for Samba NMB daemon running
    Checking for Samba SMB daemon running

    the following (1) netbios server (2) samba server and (3) samba client are all set as allowed,
    Many thanks for your help

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    10,968
    Blog Entries
    2

    Default Re: Samba not working OpenSUSE 11.4

    You have set this computer up as a Domain Member. Do you have a server there for it to talk to? Or is that a mistake and it is in a home or small office workgroup?

  7. #7
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    10,968
    Blog Entries
    2

    Default Re: Samba not working OpenSUSE 11.4

    PS, you said you are "unable to read any network drives". That can mean a bunch of things, all different. Please tell us in full what you mean by that, maybe you mean you can't see any other computers in the openSUSE network browser?

  8. #8
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,082

    Default Re: Samba not working OpenSUSE 11.4

    On Wed June 15 2011 05:06 am, swerdna wrote:

    >
    > You have set this computer up as a Domain Member. Do you have a server
    > there for it to talk to? Or is that a mistake and it is in a home or
    > small office workgroup?
    >

    darren787;

    More specifically, " security = domain" should only be used for member servers
    of an NT or Samba domain ( Some other machine is the PDC ). For non domain
    members leave security set to the default i.e. user. For non domain members
    use:
    Code:
    security = user
    See the write up in on the parameter security in "man smb.conf"
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  9. #9
    Join Date
    Jun 2011
    Location
    Adelaide, South Australia
    Posts
    107

    Default Re: Samba not working OpenSUSE 11.4

    Hi,
    I havnt set up as a server on purpose, I don't know how to do that. The computer is setup in a home network situation. I am also unsure about the security = user setting and where to find this, I have checked app armor, firewall etc but cant see it. The drive is a usb connected expansion drive that is accesible from the router. When I was using Fedora (Sorry) I used Samba to access it but it is not accessable from either Samba or the USB directly connected.

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

    Default Re: Samba not working OpenSUSE 11.4

    The expansion drive: how is it mounted in the openSUSE computer. You see the files on the openSUSE computer, the folder that they appear in is the "mount point". What's the path to the mount point?

    I think that you want to share the mount point (folder where you see the USB drive's files) out to the network. Is that right?

Page 1 of 2 12 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
  •