Created
April 14, 2020 17:29
-
-
Save asadadams/1f88ba1025f574d6d076d188beb599bd to your computer and use it in GitHub Desktop.
samba conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install ntfs-3g | |
sudo apt-get install exfat-utlis exfat-fuse | |
sudo apt-get install samba samba-common-bin | |
lsblk | |
mkdir /homecloud | |
sudo chmod 777 /homecloud | |
sudo mount /dev/sda1 /homecloud/ | |
sudo nano /etc/samba/smb.conf | |
[Home cloud] | |
comment = "Home cloud" | |
path = "/homecloud" | |
read only = no | |
writeable = yes | |
browseable = yes | |
create mask = 0777 | |
public = no | |
#force user = root | |
#force users = @users | |
#force group = users | |
sudo adduser asad | |
sudo smbpassword -a asad | |
sudo /etc/init.d/smbd restart | |
sudo nano /etc/fstab | |
/dev/sda1 auto defaults, user 0 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment