Last active
November 22, 2016 21:29
-
-
Save whatyouhide/eb8193ca24e93baeeace to your computer and use it in GitHub Desktop.
Revisions
-
whatyouhide renamed this gist
Nov 22, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
whatyouhide revised this gist
Jan 8, 2016 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,4 +30,9 @@ Restart the Sambda daemon and you're done. ```bash sudo service smbd restart ``` These steps are taken from [this AskUbuntu answer][askubuntu-samba]. [askubuntu-samba]: http://askubuntu.com/a/208173/147560 -
whatyouhide revised this gist
Jan 8, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ ## Setting up Samba First, install Samba: ```bash sudo apt-get install samba -
whatyouhide revised this gist
Jan 8, 2016 . No changes.There are no files selected for viewing
-
whatyouhide revised this gist
Jan 8, 2016 . 1 changed file with 28 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,32 @@ First, install samba: ```bash sudo apt-get install samba ``` Now, you have to setup Samba to be accessed only by your user (that we'll call `whatyouhide`). First, be sure that the `whatyouhide` Unix user exists. Then, set a Samba password for it: ```bash sudo smbpasswd -a whatyouhide ``` You can now add all the shares you want and restrict them to the `whatyouhide` Samba user. In `/etc/samba/smb.conf`: ``` [hard-drives] comment = All hard drives path = /mnt read only = no writeable = yes browseable = yes valid users = whatyouhide create mask = 0755 directory mask = 0755 ``` Restart the Sambda daemon and you're done. ```bash sudo service smbd restart ``` -
whatyouhide created this gist
Jan 8, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ ## Setting up Sambda First, install samba: $ sudo apt-get install samba Now, you have to setup Samba to be accessed only by your user (that we'll call `whatyouhide`). First, be sure that the `whatyouhide` Unix user exists. Then, set a Samba password for it: