Friday 9 December 2011

Share a folder from your Vortexbox

If you need some additional shares except the default ones (music, movies, pictures, files) just create them. Only a few steps need to be done, and it only takes a few minutes. Before making any changes to smb.conf backup the original one.

  1. Add a new section to the smb.conf
    Connect to the vortexbox with SSH and open smb.conf with an editor.

    e.g:
    nano file /etc/samba/smb.conf


    add following section:
  2.  ###### Share for temporary data sharing #########
    [Sharename]
    path = /home/trash
    guest ok = yes
    writeable = yes
    # create mask = 0777
    
    

    explaination:

    [Sharename] - the name of the share, it can be different from the diretory name
    path - path to the directory on OS layer
    guest ok - everyone in the network can access the folder
    writable - it's writable for everyone in the network
    create mask - permissions for "owner", "group", "other" as typically on Linux OS. 777 means that all 3 groups have "read", "write", "execute" permissions. default value is 744. Note: in my example it is uncommented


  3. Reload smb.conf and restart smb daemon

  4. service smb reload
    service smb restart

No comments:

Post a Comment