home / blog

Samba follow symlinks vs wide links

Samba can be configured to allow symlinks, however by default the symlinks allowed with “follow symlinks = yes” can only be within the path of the share (for very good security reasons!). If you need to link outside that path you must use “wide links = yes”.

Example directory structure

/foo
/foo/bar
/foo/bar_link -> /foo/bar
/foo/baz_link -> /baz
/baz

smb.conf that will allow user of bar_link, but not baz_link

[foo]
   path = /foo
   guest ok = yes
   public = yes
   writable = no
   follow symlinks = yes

smb.conf that will allow use of both bar_link and baz_link

[foo]
   path = /foo
   guest ok = yes
   public = yes
   writable = no
   wide links = yes
This entry was posted in geek and tagged , . Bookmark the permalink.

Comments are closed.