No - I'd use a new mount like /shared/ over NFS
NFS is faster than SMB/CIFS and offers unix permissions and all that.
Note theres nothing stopping you sharing a directory with both samba and
nfs at the same time, other than potential file locking issues.
On the host (box with the drive for sharing
1) edit /etc/exports and add this (all on one line)
/shared/data
10.28.1.1/255.255.0.0(rw,sync,no_root_squash,subtree_check)
So the host is sharing its /shared/data directory. Adjust IP network to
suit (yeah I use a /16 at home...)
2) restart nfs-server services to make this live
==================================================
On the client you can do one of two things...
1) edit /etc/fstab and add this on one line
caffeine:/shared/data /shared/data nfs
rsize=8192,wsize=8192,soft,rw,user,noatime,nfsvers=3
OR you can use autofs which automounts things on the fly
1) install autofs / automount
2) edit /etc/auto.master and add
/shared /etc/auto.shared --timeout=300
3) edit /etc/auto.shared and add
data -fstype=nfs,rw caffeine:/shared/data
4) restart autofs then try and do a ls /shared/data
(note you need a /shared but not a /shared/data directory)
Kerry Mayes wrote, On 24/07/09 13:45:
Yes! I suppose I am using NFS.
How do I make it work under that? Should I link the shared directory
to be within each users' home directory? (Does that change the
default permissions?)
2009/7/24 Craig Falconer <[email protected]>:
Since you're using linux shares, what about NFS? At least then you get
proper unix permissions and symlinks and all that.
--
Craig Falconer
The Total Team - Managed Systems
Office: 0800 888 326 / +643 974 9128
Email: [email protected]
Web: http://www.totalteam.co.nz/