How to Set Up Samba Shares For Groups - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Thursday, March 30, 2017

How to Set Up Samba Shares For Groups


How to Install Samba in Ubuntu 16.04
How to Install Samba


How to Install Samba
Step1 :- sudo apt-get install samba samba-client samba-common

How to Enable Samba at Start on Boot
Step2 :- sudo systemctl enable smbd.service
Step3 :- ​sudo systemctl enable nmbd.service
​Step4 :- sudo systemctl restart smbd.service
​Step5 :- sudo systemctl restart nmbd.service

Now Creating a New Directory with Name cloudnetwork
Step6 :- sudo mkdir -p /opt/cloudnetwork

Now Creating a New Group with Name cloudnetwork
Step7 :- sudo groupadd cloudnetwork

Assign Full Permissions to Directory and Group
Step8 :- sudo chgrp cloudnetwork /opt/cloudnetwork
​Step9 :- sudo chmod -R 770 /opt/cloudnetwork

Adding Users to New Group
Step10 :- sudo usermod -a -G cloudnetwork TEST
(Note :- TEST is the username to add into group)

Deleting User from Group
Step11 :- sudo deluser TEST GROUP

Last Command is adding Users to Samba
Step12 :- sudo smbpasswd -a TEST
Step13 :- ​sudo smbpasswd -e TEST

Configuration File of Samba