UBUNTU DUMP‎ > ‎

Quick Samba Share

posted 1 Jul 2016, 13:18 by Donald Ross   [ updated 28 Apr 2017, 16:16 ]
sudo apt-get install -y samba samba-common python-glade2 system-config-samba

sudo mkdir -p /GreedoData

sudo chmod -R 0777 /GreedoData

sudo chown -R nobody:nogroup /GreedoData

sudo nano /etc/samba/smb.conf

sudo smbpasswd -a donald

[GreedoData]
path = /GreedoData
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody

[Donald]
path = /home/donald
browsable =yes
valid users = donald
read only = no

sudo service smbd restart 

######

#list hard drives 
sudo fdisk -l
sudo lsblk -f
sudo parted -l


sudo chmod 777 -R /datadisk3

sudo nano /etc/samba/smb.conf

[DataDisk3_2TB]
path = /datadisk3
writeable = yes
browseable = yes
guest ok = yes
        create mask = 777
        directory mask = 777

sudo service smbd restart 

---------------------additional notes----------------------


sudo chmod -R 0777 /datadisk2

sudo chown -R nobody:nogroup /datadisk2

sudo mount /dev/sdc1 /datadisk2

sudo nano /etc/fstab

/dev/sdc1 /datadisk2 ext4 defaults 0 0

sudo nano /etc/samba/smb.conf

[DataDisk2]
path = /datadisk2
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody
create mask = 777
directory mask = 777

-------------------------------------
Comments