0

Recently I configured my Samba Server version 4.1.12 as a PDC (Primary Domain Controller) in Opensuse 13.2. Unfortunately I can't join the domain from my client machine based in Windows 7 and 10. On the other hand, I can access the share folders by using the domain users and domain admin. Below is the configuration from smb.conf file and the result of testparm.

smb.conf file :

[global]
    workgroup = MYDOMAIN
    passdb backend = tdbsam
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    map to guest = Bad User
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    usershare allow guests = Yes
    add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = Yes
    domain master = Yes
    local master = Yes
    netbios name = lpsadp2.lan
    os level = 65
    preferred master = Yes
    security = user
    usershare max shares = 20
    wins support = Yes
    #name resolve order = wins hosts bcast lmhost
    idmap config * : backend = tdb
    idmap config * : range = 1000 - 20000
    #idmap config MYDOMAIN : backend = rid       
    #idmap config MYDOMAIN : range = 10000 - 999999
    template shell = /bin/bash
    template homedir = /home/%U
    winbind use default domain = yes

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

[profiles]
    comment = Network Profiles Service
    path = /var/lib/samba/profiles
    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
    valid users = %U
    admin users = administrator
    guest ok = Yes
    browseable = No
    browsable = No

[private]
    admin users = admin
    comment = Share for administrators
    create mask = 0660
    force create mode = 0600
    inherit acls = Yes
    path = /home/shares/private/
    read only = No
    valid users = admin

[public]
    admin users = admin
    comment = Share for public
    create mask = 0700
    inherit acls = Yes
    path = /home/shares/public
    read only = No
    valid users = %U

testparm results:

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[netlogon]"
Processing section "[private]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
  • Please use the format options to make your question readable. – eblock Jan 14 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.