{"id":183,"date":"2015-02-13T11:18:14","date_gmt":"2015-02-13T11:18:14","guid":{"rendered":"https:\/\/edulab.unitn.it\/tecnici\/?p=183"},"modified":"2015-02-13T11:18:14","modified_gmt":"2015-02-13T11:18:14","slug":"aggiungere-share-samba-a-conteiner-proxmox","status":"publish","type":"post","link":"https:\/\/edulab.unitn.it\/tecnici\/aggiungere-share-samba-a-conteiner-proxmox\/","title":{"rendered":"Aggiungere share Samba a Conteiner proxmox"},"content":{"rendered":"<p>Esempio concreto<\/p>\n<p>montare la cartella<strong> smb:\/\/192.168.131.6\/studenti<\/strong> nella cartella <strong>\/var\/www\/Samba nel\u00a0container\u00a0120<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #2d2d2d;font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size: 18px;line-height: 1.1\">Montare la cartella samba nel server proxmox<\/span><\/p>\n<p>creare il mountpoint nel server proxmox<\/p>\n<pre>mkdir \/mnt\/Studenti<\/pre>\n<p>Editare il file \\etc\\fstab e aggiungere<\/p>\n<pre>\/\/192.168.131.6\/studenti\/ \/mnt\/Studenti cifs ro,username=UNITN\\[user],password=[password],uid=www-data,uid=www-data,gid=www-data<\/pre>\n<p>montare la cartella<\/p>\n<pre># mount -a<\/pre>\n<p>&nbsp;<\/p>\n<h4>Montare la cartella nel container<\/h4>\n<p>Creare il file\u00a0<strong>\/etc\/vz\/conf\/120.mount<\/strong><\/p>\n<pre>#!\/bin\/bash\r\nIDVZ=120\r\nSRC=\/mnt\/Studenti\r\nDST=\/var\/www\/Samba\r\nmount --bind ${SRC} \/var\/lib\/vz\/root\/${IDVZ}${DST}<\/pre>\n<p>riavviare il Container<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Esempio concreto montare la cartella smb:\/\/192.168.131.6\/studenti nella cartella \/var\/www\/Samba nel\u00a0container\u00a0120 &nbsp; Montare la cartella samba nel server proxmox creare il mountpoint nel server proxmox mkdir \/mnt\/Studenti Editare il file \\etc\\fstab [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-how-to","category-linux"],"_links":{"self":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/comments?post=183"}],"version-history":[{"count":2,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/183\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}