{"id":185,"date":"2017-04-17T09:12:24","date_gmt":"2017-04-17T12:12:24","guid":{"rendered":"http:\/\/init.net.br\/blog\/?p=185"},"modified":"2019-08-02T16:12:30","modified_gmt":"2019-08-02T19:12:30","slug":"configurando-samba-debian-8","status":"publish","type":"post","link":"https:\/\/blog.init.net.br\/?p=185","title":{"rendered":"Configurando Samba Debian 8"},"content":{"rendered":"<p>1 &#8211; Instalar os pacotes:<\/p>\n<p>apt-get install libcups2 samba samba-common cups<\/p>\n<p>2 &#8211; Criar o arquivo \/etc\/samba\/smb.conf, com o seguinte conteudo:<\/p>\n<pre>[global]\r\nworkgroup = WORKGROUP\r\nserver string = Samba Server %v\r\nnetbios name = debian\r\nsecurity = user\r\nmap to guest = bad user\r\ndns proxy = no<\/pre>\n<p>3 &#8211; Criar os diret\u00f3rios para compartilhamento:<\/p>\n<pre>[<span style=\"color: #ff0000;\">compartilhamento<\/span>]\r\n  comment = All Users\r\n  path = \/home\/shares\/compartilhamento\r\n  valid users = @<span style=\"color: #ff0000;\">users<\/span>\r\n  force group = <span style=\"color: #ff0000;\">users<\/span>\r\n  create mask = 0660\r\n  directory mask = 0771\r\n  writable = yes\r\n<\/pre>\n<p>Substituir o @<span style=\"color: #ff0000;\">users<\/span> e o <span style=\"color: #ff0000;\">users<\/span> pelo grupo que ter\u00e1 acesso \u00e0 pasta.<\/p>\n<p>4 &#8211; Adicionar o usu\u00e1rio<\/p>\n<pre>useradd <span style=\"color: #ff0000;\">usuario<\/span>-m -G <span style=\"color: #ff0000;\">users<\/span>\r\npasswd <span style=\"color: #ff0000;\">usuario<\/span>\r\nsmbpasswd -a <span style=\"color: #ff0000;\">usuario<\/span>\r\n<\/pre>\n<p>5 &#8211; Testar o acesso \\\\ip-do-servidor<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 &#8211; Instalar os pacotes: apt-get install libcups2 samba samba-common cups 2 &#8211; Criar o arquivo \/etc\/samba\/smb.conf, com o seguinte conteudo: [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = debian security = user map to guest = bad user dns proxy = no 3 &#8211; Criar os diret\u00f3rios para compartilhamento: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts\/185"}],"collection":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":5,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}