Difference between revisions of "Add symbolic links to storage folder"

From BubbaWiki
Jump to navigation Jump to search
Line 13: Line 13:
follow symlinks=yes
follow symlinks=yes
wide links=yes
wide links=yes


</pre>  
</pre>  

Revision as of 18:25, 22 November 2010

You may need to share folders located in different users home directories. It is possible to create a symbolic link to achieve this.

For example I have my stuff in /home/asqu/data

I want to make the contents of /home/asqu/data/documents available to my storage folder without moving it, so remote users who have access to my share through PPTP VPN can add stuff there.

I don't want them to access all the contents of my whole home folder.

First edit /etc/samba/smb.conf and add the following lines:

[global]
unix extensions=no
[storage]

follow symlinks=yes wide links=yes

Now restart Samba:

service samba restart

Now create the symbolic link:

cd /home/storage

ln -s /home/asqu/data/documents

Now from Windows, go into the storage folder and access documents, create a file and go back to /home/asqu/data/documents in your shell and verify that the created file is there.

You may replace "asqu" with your username. This way, all the stuff added into the symbolic link will actually be saved to my home folder.

This also makes backup easy without having to include multiplce locations.