|
Prev: Excluding particular directories from auto mounting
Next: Sun launches bundled OpenSolaris in latest push for developer support
From: Monty on 5 May 2008 15:19 It seems to me, some time ago, that there was a method for excluding a particular directory in an auto map. I have a need to auto_mount all but one user's home directory with the etc/auto_home file. Does anyone know about this? Thanks
From: Randy Jones on 6 May 2008 00:45 Monty wrote: > It seems to me, some time ago, that there was a method for excluding a > particular directory in an auto map. I have a need to auto_mount all > but one user's home directory with the etc/auto_home file. Does > anyone know about this? > > Thanks If you want to mount a user's home directory from somewhere else than what is specified in the auto_home nis/nisplus map you need to stick an entry in /etc/auto_home BEFORE the +auto_home line. For example to mount dale from somewhere else the /etc/auto_home file would look like this: dale someOtherServer:/some/path/dale +auto_home After you make this change then do the following: 1. umount /home/dale if it is already mounted 2. run "automount" 3. cd /home/dale 4. run "mount" and look for /home/dale to make sure it is mounted from someOtherServer:/some/path/dale -- ---------------------------------- Randy Jones E-Mail: randy(a)jones.tri.net ----------------------------------
From: Monty on 6 May 2008 09:45
That's good, and I'll keep that in mind, but what I need to do is auto mount all home directories except for one. Say I wanted to mount every one BUT dale's home directory, which would be local in /home/ dale. Is there a way to do that? Years ago I remember something about a -null entry in /etc/auto_direct, but I can't find the syntax for it, if indeed that is the option I'm looking for. Based on your post, I want to try something like: /home/dale -null +auto_home Does that look right? Thanks |