Need some help to setup Samba

Discussion in 'Installation/Configuration' started by baldur2630, May 25, 2018.

  1. baldur2630

    baldur2630 Member

    I had Samba shares working perfectly, both ways using CentOS 5. (Not sure how I did it!) When I upgraded to CentOS 6, I had a lot of problems but I managed to get it working so that I could access samba shares from Windows 7, but not the other way round.

    Now I'm on CentOS 7.5 and I can't get anything working at all.

    If I try to see Windows computers from CentOS, I get an Empty Page
    If I try to connect to Samba shares from Windows, I can 'see' the share, but when it asks me for a username and password, it just keeps refusing it.

    Here is my "sanitized" smb.conf :

    [global]
    log file = /var/log/samba/log.%m
    load printers = no
    domain master = no
    hosts allow = 127. 192.168.0.0/24
    encrypt passwords = yes
    realm = xxx.mydomain.com
    passdb backend = tdbsam
    netbios name = CentOS-73
    cups options = raw
    server string = Samba Server Version %v
    password server = My-DC.xxx.mydomain.com
    workgroup = MYOB
    os level = 20
    printcap name = /dev/null
    security = ads
    max log size = 5
    ; domain logons = yes

    # log files split per-machine:
    # enable the following line to debug:
    # log level =3
    # maximum size of 50KB per log file, then rotate:
    ; id map config * : backend -tdb

    # Not interested in printers

    [homes]
    comment = Home Directories
    browseable = yes
    writable = yes
    # valid users = %S
    valid users = MYOB\%S

    [Web]
    comment = Web Servers
    browseable = yes
    writable = yes
    path = /var/www/
    guest ok = no
    # valid users = %S
    valid users = MYOB\%S

    # Un-comment the following and create the netlogon directory for Domain Logons:

    #[netlogon]
    # comment = Network Logon Service
    # path = /var/lib/samba/netlogon
    # guest ok = no
    # writable = no

    # Un-comment the following to provide a specific roaming profile share.
    # The default is to use the user's home directory:

    [Profiles]
    # path = /var/lib/samba/profiles
    # browseable = no
    # guest ok = yes

    Before you say it - I really DON'T know what I'm doing). I still have big 'L' Plates. I work mainly with Windows. I WANT to get rid of windows, but I still don't have all the skills I need to be comfortable with it. I find Samba difficult, non-intuitive and unforgiving. The other Linux stuff, I think I'm doing OK.

    A bit of SIMPLE hand-holding would be nice. PLEASE!
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

Share This Page