Skip to content

Instantly share code, notes, and snippets.

@whatyouhide
Last active November 22, 2016 21:29
Show Gist options
  • Save whatyouhide/eb8193ca24e93baeeace to your computer and use it in GitHub Desktop.
Save whatyouhide/eb8193ca24e93baeeace to your computer and use it in GitHub Desktop.

Revisions

  1. whatyouhide renamed this gist Nov 22, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. whatyouhide revised this gist Jan 8, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion instructions.md
    Original 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
  3. whatyouhide revised this gist Jan 8, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## Setting up Sambda
    ## Setting up Samba

    First, install samba:
    First, install Samba:

    ```bash
    sudo apt-get install samba
  4. whatyouhide revised this gist Jan 8, 2016. No changes.
  5. whatyouhide revised this gist Jan 8, 2016. 1 changed file with 28 additions and 2 deletions.
    30 changes: 28 additions & 2 deletions instructions.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,32 @@

    First, install samba:

    $ sudo apt-get 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:
    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
    ```
  6. whatyouhide created this gist Jan 8, 2016.
    7 changes: 7 additions & 0 deletions instructions.md
    Original 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: