On 01/23/2012 02:05 AM, gene heskett wrote: >> mistake number two. Why the heck are you torturing Linux with protocols >> mainly used for windows? >> > Because historically, NFS has never worked, and its docs suck. > Setup is the key to NFS. Agreed, the docs aren't all that great. > > >> >> mistake number 3. Don't use /mnt as that's traditionally used for quick >> mounts like CDs, or USB thingies. >> > I could put it in /media, or in / for that matter, its a share that should > be there, no questions asked as long as both machines are booted up. And > that is the case 24/7/365 for these 2 boxes. > Usually a lot easier to create the mount point in the / directory. Media, mnt and net are all sorta kinda special directories. > > >> The following needs to be done as root or use sudo: >> * assume one side is the NFS server: >> - install package autofs >> - edit /etc/exports with something like >> /home/gene (rw,sync,no_subtree_check) >> >> - restart autofs >> service nfs-kernel-server restart >> test with >> showmount -e<- to get >> Export list for<servername>: >> /home/gene * >> >> * on the workstation side: >> - install package autofs >> - edit /etc/auto.master to enable auto.net function >> /net -hosts<- line that likely needs to be uncommented >> >> that will let you see (automount) servers' export under >> /net/<servername> >> where<servername> is your "other PC". ls /net shows nothing while 'ls >> /net/<servername> should show exported files in your home directory. >> Now let's test this setup: >> touch /net/<servername>/xxx >> ls -l /net/<servername>/xxx >> >> 2 minutes, no public exposure, assuming both sides have the same >> distribution, (k)ubuntu in my case, and same UID,GID. >> > That's the rub, this box is pclos, first uid,gid is 500. > Nothing says that UID/GID has to be used. Change the UIDs/GIDs so they match. Since pclos is lower than the Ubuntu UID/GID schema, it won't hurt anything on the pclos box to change your user there to match the Ubuntu UID/GID. You can also do this:
edit file /etc/login.defs with your favourite editor and find and replace this line : UID_MIN 500 GID_MIN 500 The 1000 as the UID/GID seems completely arbitrary, and Ubuntu seems to be the only one doing it. Convention has it that UIDs/GIDs <= 100 are for system use. Anything above is non-system-priv'd. > Cheers, Gene Mark ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users