Add symbolic links to storage folder

From BubbaWiki
Revision as of 18:23, 22 November 2010 by Asad (talk | contribs) (Created page with 'You may need to share folders located in different users home directories. It is possible to create a symbolic link to achieve this.<br> For example I have my stuff in /home/asq...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.