|| SMB / CIFS / NFS
||Dec. 6th, 2007 05:52 pm|
Samba doesn't share symlinks as symlinks. NFS, from what little I've read, seems to have no decent user-based security.|
Obviously Windows won't handle symlinks, but how can I securely share a filesystem from linux to OSX and maintain symlinks as real?
(Why do I need to maintain symlinks? Because subversion gets very upset when it finds a regular file or directory where it thinks a symlink should be.)
NFS, from what little I've read, seems to have no decent user-based security.
It assumes that if someone can authenticate as user X on box A, they can also authenticate as user X on box B. If you can live with that and your network is reliable it should be fine.
The Samba server is linux and the client is OSX, right?
I don't know if OSX has a similar option, but the Linux kernel CIFS client
can be told to change this behaviour:
echo 1 > /proc/fs/cifs/LinuxExtensionsEnabled
will show symlinks as symlinks (but you must mount the FS as type cifs and not smbfs)
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
will show symlinks as the target they are pointing to
This settings is used upon the time of mounting, so you can even have the remote filesystem mounted twice, once with the option turned on, and once with the options turned off.
This is all assuming OSX supports CIFS as its own filesystem and not as SMBFS and assuming OSX actually has a similar option.
The LinuxExtensions do a little more than just the symlinks, biut if you google for this /proc setting you can probably figure it out yourself.