In Host
Create CT
Ct requirements
Unprivileged: 1 Image: Alpine Disk: 12 GB CPU: 2 Ram: 2048 Network: Static IPV4
Prerequisite: Map User and Mount Point
In Alpine CT
apk update && apk upgrade
apk add samba nano
nano /etc/samba/smb.conf
Edit Samba Config File
Append in /etc/samba/smb.conf:
Caution
<SHARE_NAME>, <SHARE_PATH>, <SMB_USER>, <SMB_GROUP> Must Be Manually Configured.
[<SHARE_NAME>]
comment= Network Shared Folder by Samba Server on Ubuntu
path = <SHARE_PATH>
force user = <SMB_USER>
force group = <SMB_GROUP>
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
read only = no
browseable = yes
After Configuring
Caution
<SHARE_NAME>, <SHARE_PATH>, <SMB_USER>, <SMB_GROUP> Must Be Manually Configured.
mkdir -p <SHARE_PATH>
addgroup --system <SMB_GROUP>
adduser -G <SMB_GROUP> -H -D -s /sbin/nologin <SMB_USER>
chown -R <SMB_USER>:<SMB_GROUP> <SHARE_PATH>
chmod -R g+w <SHARE_PATH>
rc-update add samba default
rc-service samba start
service samba status
smbpasswd -a <SMB_USER>