Bug 4175 - wide links issue
wide links issue
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
x86 Linux
: P3 enhancement
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2006-10-16 07:03 UTC by Jan Engelhardt
Modified: 2006-10-16 07:03 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jan Engelhardt 2006-10-16 07:03:50 UTC
The manpage says

wide links (S)
This parameter controls whether or not links in  the  UNIX  file
system  may be followed by the server. Links that point to areas
within the directory tree exported  by  the  server  are  always
allowed;  this  parameter controls access only to areas that are
outside the directory tree being exported.

This parameter should not apply to CIFS clients using Unix Extensions (such as mount.cifs), because they will never make the server dereference it, but display it as a genuine symlink.

I think the "wide links" option should be split into "server dereference" to control the behavior for non-unix-extension clients, and a "pure symlinks" option to do it the NFS way, to pass symlinks as-is, knowingly that the symlink target may point outside the intended directory _on the client_:

lrwxrwxrwx  1 root root 15 Oct  7 21:11 /erk/tftpboot/terran/sbin/rckbd -> /etc/init.d/kbd

(When terran is mounted as '/' on a diskless client, it points to the right file, /erk/tftpboot/terran/etc/init.d/kbd)