{"id":230,"date":"2019-05-24T21:26:41","date_gmt":"2019-05-24T20:26:41","guid":{"rendered":"http:\/\/blog.brunocsmartin.fr\/?p=230"},"modified":"2019-05-24T22:04:08","modified_gmt":"2019-05-24T21:04:08","slug":"samba-share-on-vpn-network","status":"publish","type":"post","link":"https:\/\/blog.brunocsmartin.fr\/index.php\/2019\/05\/24\/samba-share-on-vpn-network\/","title":{"rendered":"samba share on vpn network"},"content":{"rendered":"<p>samba share on vpn network<\/p>\n<pre>root@raspberrypi32:~# cat \/etc\/samba\/smb.conf\r\n# See smb.conf.example for a more detailed config file or\r\n# read the smb.conf manpage.\r\n# Run 'testparm' to verify the config is correct after\r\n# you modified it.\r\n\r\n[global]\r\n  workgroup = BRUNOCSMARTIN\r\n  security = user\r\n\r\n  passdb backend = tdbsam\r\n\r\n  bind interfaces only = yes\r\n  interfaces = 127.0.0.1 10.8.0.2\/24 192.168.1.26\/24\r\n\r\n  wins support = yes\r\n  name resolve order = wins lmhosts host bcast\r\n\r\n  local master = yes\r\n  preferred master = yes\r\n\r\n  netbios name = IMPACTE\r\n\r\n  veto files = \/.DS_Store\/._.DS_Store\r\n  delete veto files = yes\r\n\r\n  vfs objects = full_audit\r\n\r\n  full_audit:prefix = %u|%I|%m|%S\r\n  full_audit:success = mkdir rename unlink rmdir pwrite\r\n  full_audit:failure = mkdir rename unlink rmdir pwrite\r\n  full_audit:facility = local7\r\n  full_audit:priority = NOTICE\r\n\r\n[impacte]\r\n  comment = \"Imp'Acte\"\r\n  path = \/home\/impacte\/impacte\r\n\tvalid users = bmartin acdremont jpereira araschetti\r\n\twritable = yes\r\n\r\n[impacte-admin]\r\n  comment = \"Imp'Acte Admin\"\r\n  path = \/home\/impacte\/impacte-admin\r\n\tvalid users = bmartin acdremont jpereira xguicherd araschetti\r\n\twritable = yes\r\n<\/pre>\n<p>Add user for samba share only (no home directory, no other rights)<\/p>\n<pre>root@localhost:~# useradd xguicherd\r\nroot@localhost:~# usermod -a -G impacte xguicherd\r\nroot@localhost:~# passwd xguicherd\r\nroot@localhost:~# smbpasswd -a xguicherd\r\nroot@localhost:~# systemctl restart smbd\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>samba share on vpn network root@raspberrypi32:~# cat \/etc\/samba\/smb.conf # See smb.conf.example for a more detailed config file or # read the smb.conf manpage. # Run &lsquo;testparm&rsquo; to verify the config is correct after # you modified it. [global] workgroup = BRUNOCSMARTIN security = user passdb backend = tdbsam bind interfaces only = yes interfaces = &hellip; <a href=\"https:\/\/blog.brunocsmartin.fr\/index.php\/2019\/05\/24\/samba-share-on-vpn-network\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">samba share on vpn network<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-230","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/230"}],"collection":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":6,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/230\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}