{"id":20,"date":"2018-04-17T17:30:06","date_gmt":"2018-04-17T21:30:06","guid":{"rendered":"https:\/\/nobrandsan.com\/wordpress\/?p=20"},"modified":"2021-06-30T15:34:27","modified_gmt":"2021-06-30T19:34:27","slug":"samba-sediskoperatorprivilege-cant-be-set","status":"publish","type":"post","link":"https:\/\/nobrandsan.com\/wordpress\/index.php\/2018\/04\/17\/samba-sediskoperatorprivilege-cant-be-set\/","title":{"rendered":"SAMBA &#8211; SeDiskOperatorPrivilege can&#8217;t be set"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><span id=\"SeDiskOperatorPrivilege_can.27t_be_set\" class=\"mw-headline\">SeDiskOperatorPrivilege can&#8217;t be set<\/span><\/h1>\n\n\n\n<p>You want to set SeDiskOperatorPrivilege on your member server to manage your share permissions but you get an error like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># net rpc rights grant 'SAMDOM\\Domain Admins' SeDiskOperatorPrivilege -U'SAMDOM\\administrator'\nEnter SAMDOM\\administrator's password:\nCould not connect to server 127.0.0.1\nThe username or password was not correct.\nConnection failed: NT_STATUS_LOGON_FAILURE<\/code><\/pre>\n\n\n\n<p>In this case you need to create a user mapping file (i.e. \/etc\/samba\/user.map) with the following content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>!root = SAMDOM\\Administrator SAMDOM\\administrator<\/code><\/pre>\n\n\n\n<p>After this you need to add a parameter to the [global] section of your smb.conf:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>username map = \/etc\/samba\/user.map<\/code><\/pre>\n\n\n\n<p>Restart or reload samba and you will then be able to set SeDiskOperatorPrivilege with the administrator account:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># net rpc rights grant 'SAMDOM\\Domain Admins' SeDiskOperatorPrivilege -U'SAMDOM\\administrator'<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SeDiskOperatorPrivilege can&#8217;t be set You want to set SeDiskOperatorPrivilege on your member server to manage your share permissions but you get an error like this: In this case you need to create a user mapping file (i.e. \/etc\/samba\/user.map) with the following content: After this you need to add a parameter to the [global] section of&hellip;&nbsp;<a href=\"https:\/\/nobrandsan.com\/wordpress\/index.php\/2018\/04\/17\/samba-sediskoperatorprivilege-cant-be-set\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">SAMBA &#8211; SeDiskOperatorPrivilege can&#8217;t be set<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1],"tags":[15,7],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-windows"],"_links":{"self":[{"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":3,"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nobrandsan.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}