
{"id":457,"date":"2018-08-22T11:06:57","date_gmt":"2018-08-22T14:06:57","guid":{"rendered":"http:\/\/rodrigosilvaesilva.com.br\/?p=457"},"modified":"2018-08-22T11:06:57","modified_gmt":"2018-08-22T14:06:57","slug":"compartilhamento-samba","status":"publish","type":"post","link":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/2018\/08\/22\/compartilhamento-samba\/","title":{"rendered":"Compartilhamento Samba sem senha"},"content":{"rendered":"<p>Instala\u00e7\u00e3o Samba<\/p>\n<pre class=\"lang:sh decode:true \">[root@bdora~]# yum install samba samba-client samba-common\nLoaded plugins: ulninfo\nSetting up Install Process\nPackage samba-3.6.23-51.0.1.el6.x86_64 already installed and latest version\nPackage samba-common-3.6.23-51.0.1.el6.x86_64 already installed and latest version\nResolving Dependencies\n--&gt; Running transaction check\n---&gt; Package samba-client.x86_64 0:3.6.23-51.0.1.el6 will be installed\n--&gt; Finished Dependency Resolution\n\nDependencies Resolved\n\n========================================================================================================================================================================\n Package                                Arch                             Version                                      Repository                                   Size\n========================================================================================================================================================================\nInstalling:\n samba-client                           x86_64                           3.6.23-51.0.1.el6                            public_ol6_latest                            11 M\n\nTransaction Summary\n========================================================================================================================================================================\nInstall       1 Package(s)\n\nTotal download size: 11 M\nInstalled size: 40 M\nIs this ok [y\/N]: y\nDownloading Packages:\nsamba-client-3.6.23-51.0.1.el6.x86_64.rpm                                                                                                        |  11 MB     00:23\nRunning rpm_check_debug\nRunning Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing : samba-client-3.6.23-51.0.1.el6.x86_64                                                                                                                1\/1\n  Verifying  : samba-client-3.6.23-51.0.1.el6.x86_64                                                                                                                1\/1\n\nInstalled:\n  samba-client.x86_64 0:3.6.23-51.0.1.el6\n\nComplete!\n<\/pre>\n<p>Backup arquivo de conf<\/p>\n<pre class=\"lang:default decode:true \">[root@bdora]# cp \/etc\/samba\/smb.conf smb.conf.bkp<\/pre>\n<p>Alterar a linha security<\/p>\n<pre class=\"lang:sh decode:true \">security = share<\/pre>\n<p>Adicione no arquivo<\/p>\n<pre class=\"lang:sh decode:true \">[backup]\n        comment = Backup\n        path = \/u02\/bkp\n        public = yes\n        writable = yes\n        printable=no\n<\/pre>\n<p>Habilitar inicializa\u00e7\u00e3o do Samba<\/p>\n<pre class=\"lang:sh decode:true\">chkconfig smb on<\/pre>\n<pre class=\"lang:sh decode:true\">chkconfig nmb on<\/pre>\n<p>Checar\u00a0 se foi adicionado<\/p>\n<pre class=\"lang:sh decode:true \">[root@bdora ]# chkconfig --list  | grep mb\nnmb             0:off   1:off   2:on    3:on    4:on    5:on    6:off\nsmb             0:off   1:off   2:on    3:on    4:on    5:on    6:off\n<\/pre>\n<p>Iniciar servi\u00e7o Samba<\/p>\n<pre class=\"lang:sh decode:true\">[root@bdora]# service smb start\nStarting SMB services:                                     [  OK  ]<\/pre>\n<pre class=\"lang:sh decode:true \">[root@bdora]# service nmb start\nStarting NMB services:                                     [  OK  ]\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instala\u00e7\u00e3o Samba [root@bdora~]# yum install samba samba-client samba-common Loaded plugins: ulninfo Setting up Install Process Package samba-3.6.23-51.0.1.el6.x86_64 already installed and latest version Package samba-common-3.6.23-51.0.1.el6.x86_64 already installed and latest version Resolving Dependencies &#8211;&gt; Running transaction check &#8212;&gt; Package samba-client.x86_64 0:3.6.23-51.0.1.el6 will be installed &#8211;&gt; Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================================&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[60,319],"class_list":["post-457","post","type-post","status-publish","format-standard","hentry","category-linux","tag-compartilhamento-samba","tag-samba"],"_links":{"self":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=457"}],"version-history":[{"count":0,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/posts\/457\/revisions"}],"wp:attachment":[{"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rodrigosilvaesilva.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}