Warning |
---|
title | This page is a work in progress |
---|
|
|
Samba
Code Block |
---|
|
sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
attr libaio1 libfile-copy-recursive-perl python-dnspython samba-dsdb-modules
samba-vfs-modules tdb-tools update-inetd
Suggested packages:
bind9 bind9utils ctdb ldb-tools smbldap-tools winbind
The following NEW packages will be installed:
attr libaio1 libfile-copy-recursive-perl python-dnspython samba samba-dsdb-modules
samba-vfs-modules tdb-tools update-inetd
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,549 kB of archives.
After this operation, 14.8 MB of additional disk space will be used. |
Create the mount directory
sudo mkdir /media/lxdfolder
Edit the samba config to define your mount point
Code Block |
---|
|
sudo vi /etc/samba/smb.conf |
Add the entry to the file
Code Block |
---|
|
guest ok = no
[lxdfolder]
comment = this is a shared folder
path = /media/lxdfolder
browseable = yes
readonly = no
guest ok = no
# Please note that you also need to set appropriate Unix permissions |
Now add your shared folder to the local container
Code Block |
---|
|
lxc config device add containername lxdfolder disk source=/media/lxdfolder path=/media/lxdfolder |