Skip to content

Instantly share code, notes, and snippets.

@josh23french
Last active December 17, 2015 17:18
Show Gist options
  • Save josh23french/5644589 to your computer and use it in GitHub Desktop.
Save josh23french/5644589 to your computer and use it in GitHub Desktop.

Revisions

  1. josh23french revised this gist May 24, 2013. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions Lion Samba Automount.md
    Original file line number Diff line number Diff line change
    @@ -2,33 +2,33 @@ Automounting setup
    ==================
    Make a new folder for your mount::

    ``mkdir /Volumes/[folder name]``
    mkdir /Volumes/[folder name]

    Open the master autofs file for editing::

    ``sudo nano /etc/auto_master``
    sudo nano /etc/auto_master

    Add the following line::

    ``/- auto_smb``
    /- auto_smb

    This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share::

    sudo nano /etc/auto_smb

    Add a line for your share::

    ``/Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]``
    /Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]

    The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters.

    For security reasons, only root should be able to read ``/etc/auto_smb``, so::

    ``sudo chmod 600 /etc/auto_smb``
    sudo chmod 600 /etc/auto_smb

    Linking to desktop
    ==================

    You can choose where to put a link, but the desktop makes sense for most people::

    ``ln -s /Volumes/[folder name] ~/Desktop/``
    ln -s /Volumes/[folder name] ~/Desktop/
  2. josh23french revised this gist May 24, 2013. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions Lion Samba Automount.md
    Original file line number Diff line number Diff line change
    @@ -2,33 +2,33 @@ Automounting setup
    ==================
    Make a new folder for your mount::

    ``mkdir /Volumes/[folder name]``
    ``mkdir /Volumes/[folder name]``

    Open the master autofs file for editing::

    ``sudo nano /etc/auto_master``
    ``sudo nano /etc/auto_master``

    Add the following line::

    ``/- auto_smb``
    ``/- auto_smb``

    This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share::

    ``sudo nano /etc/auto_smb``
    sudo nano /etc/auto_smb

    Add a line for your share::

    ``/Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]``
    ``/Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]``

    The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters.

    For security reasons, only root should be able to read ``/etc/auto_smb``, so::

    ``sudo chmod 600 /etc/auto_smb``
    ``sudo chmod 600 /etc/auto_smb``

    Linking to desktop
    ==================

    You can choose where to put a link, but the desktop makes sense for most people::

    ``ln -s /Volumes/[folder name] ~/Desktop/``
    ``ln -s /Volumes/[folder name] ~/Desktop/``
  3. josh23french revised this gist May 24, 2013. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions Lion Samba Automount.md
    Original file line number Diff line number Diff line change
    @@ -2,33 +2,33 @@ Automounting setup
    ==================
    Make a new folder for your mount::

    mkdir /Volumes/[folder name]
    ``mkdir /Volumes/[folder name]``

    Open the master autofs file for editing::

    sudo nano /etc/auto_master
    ``sudo nano /etc/auto_master``

    Add the following line::

    /- auto_smb
    ``/- auto_smb``

    This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share::

    sudo nano /etc/auto_smb
    ``sudo nano /etc/auto_smb``

    Add a line for your share::

    /Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]
    ``/Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]``

    The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters.

    For security reasons, only root should be able to read ``/etc/auto_smb``, so::

    sudo chmod 600 /etc/auto_smb
    ``sudo chmod 600 /etc/auto_smb``

    Linking to desktop
    ==================

    You can choose where to put a link, but the desktop makes sense for most people::

    ln -s /Volumes/[folder name] ~/Desktop/
    ``ln -s /Volumes/[folder name] ~/Desktop/``
  4. josh23french revised this gist May 24, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Lion Samba Automount.md
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,18 @@
    Automounting setup
    ==================
    #. Make a new folder for your mount::
    Make a new folder for your mount::

    mkdir /Volumes/[folder name]

    #. Open the master autofs file for editing::
    Open the master autofs file for editing::

    sudo nano /etc/auto_master

    Add the following line::

    /- auto_smb

    #. This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share::
    This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share::

    sudo nano /etc/auto_smb

    @@ -22,7 +22,7 @@ Add a line for your share::

    The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters.

    #. For security reasons, only root should be able to read ``/etc/auto_smb``, so::
    For security reasons, only root should be able to read ``/etc/auto_smb``, so::

    sudo chmod 600 /etc/auto_smb

  5. josh23french created this gist May 24, 2013.
    34 changes: 34 additions & 0 deletions Lion Samba Automount.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    Automounting setup
    ==================
    #. Make a new folder for your mount::

    mkdir /Volumes/[folder name]

    #. Open the master autofs file for editing::

    sudo nano /etc/auto_master

    Add the following line::

    /- auto_smb

    #. This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share::

    sudo nano /etc/auto_smb

    Add a line for your share::

    /Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]

    The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters.

    #. For security reasons, only root should be able to read ``/etc/auto_smb``, so::

    sudo chmod 600 /etc/auto_smb

    Linking to desktop
    ==================

    You can choose where to put a link, but the desktop makes sense for most people::

    ln -s /Volumes/[folder name] ~/Desktop/