{"id":971,"date":"2018-07-04T11:31:06","date_gmt":"2018-07-04T08:31:06","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=971"},"modified":"2018-07-04T11:31:06","modified_gmt":"2018-07-04T08:31:06","slug":"debian-8-samba-4-uid-oigeks-panemine","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=971","title":{"rendered":"Debian 8 &#8211; Samba 4 (UID \u00f5igeks panemine)"},"content":{"rendered":"<p><strong>1.<\/strong>\u00a0I&#8217;ve added these 2 lines to smb.conf:<\/p>\n<pre><code>idmap config * : backend = tdb\r\nidmap config * : range = 10000-30000<\/code>\r\n\r\n\r\n<\/pre>\n<p>2. here is\u00a0<code>\/etc\/nsswitch.conf<\/code>\u00a0(I&#8217;ve tried adding and removing &#8216;winbindd from shadow, no change at all):<\/p>\n<pre><code># cat \/etc\/nsswitch.conf \r\n# \/etc\/nsswitch.conf\r\n#\r\n# Example configuration of GNU Name Service Switch functionality.\r\n# If you have the `glibc-doc-reference' and `info' packages installed, try:\r\n# `info libc \"Name Service Switch\"' for information about this file.\r\n\r\npasswd:         compat winbind\r\ngroup:          compat winbind\r\nshadow:         compat \r\ngshadow:        files\r\n\r\nhosts:          files mdns4_minimal [NOTFOUND=return] dns wins\r\nnetworks:       files\r\n\r\nprotocols:      db files\r\nservices:       db files\r\nethers:         db files\r\nrpc:            db files\r\n\r\n3.\u00a0Vaja\u00a0installida\u00a0pack`id\u00a0peale<\/code><\/pre>\n<p>get sure you installed all the necessary packages (the missing one was libnss-winbind):<\/p>\n<pre><code><\/code><\/pre>\n<pre><code>apt-get install samba acl attr quota fam winbind libpam-winbind \\\r\nlibpam-krb5 libnss-winbind krb5-config krb5-user ntp dnsutils ldb-tools\r\n\r\n4.\u00a0Tee\u00a0serverile\u00a0restart<\/code><\/pre>\n<pre><code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0I&#8217;ve added these 2 lines to smb.conf: idmap config * : backend = tdb idmap config * : range = 10000-30000 2. here is\u00a0\/etc\/nsswitch.conf\u00a0(I&#8217;ve tried adding and removing &#8216;winbindd from shadow, no change at all): # cat \/etc\/nsswitch.conf # \/etc\/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":621,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-971","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=971"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/971\/revisions"}],"predecessor-version":[{"id":972,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/971\/revisions\/972"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/621"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}